ip_output(): if mb_unmapped_to_ext() failed, return directly

do not free the original mbuf, it is already freed by the
mb_unmapped_to_ext().

Reviewed by:	glebius
Sponsored by:	NVidia networking
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D49305
This commit is contained in:
Konstantin Belousov 2025-03-06 19:58:48 +02:00
parent c5a96f09df
commit edc1fba05e

View file

@ -751,7 +751,7 @@ sendit:
error = ENOBUFS;
}
IPSTAT_INC(ips_odropped);
goto bad;
goto done;
} else {
m = m1;
}