git: edc1fba05e05 - main - ip_output(): if mb_unmapped_to_ext() failed, return directly
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 10 Mar 2025 20:17:42 UTC
The branch main has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=edc1fba05e055a1943efd969d77c0acf0fbff587
commit edc1fba05e055a1943efd969d77c0acf0fbff587
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2025-03-06 17:58:48 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2025-03-10 20:16:58 +0000
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
---
sys/netinet/ip_output.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/netinet/ip_output.c b/sys/netinet/ip_output.c
index 9d72300e8b68..eb5d50bd4570 100644
--- a/sys/netinet/ip_output.c
+++ b/sys/netinet/ip_output.c
@@ -751,7 +751,7 @@ sendit:
error = ENOBUFS;
}
IPSTAT_INC(ips_odropped);
- goto bad;
+ goto done;
} else {
m = m1;
}