git: 07b16b1e2aea - main - if_vlan: Stop checking for failures from malloc(M_WAITOK)
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 03 Sep 2024 10:26:50 UTC
The branch main has been updated by zlei:
URL: https://cgit.FreeBSD.org/src/commit/?id=07b16b1e2aeab0b30f68a013de31a4c322a61246
commit 07b16b1e2aeab0b30f68a013de31a4c322a61246
Author: Zhenlei Huang <zlei@FreeBSD.org>
AuthorDate: 2024-09-03 10:25:19 +0000
Commit: Zhenlei Huang <zlei@FreeBSD.org>
CommitDate: 2024-09-03 10:25:19 +0000
if_vlan: Stop checking for failures from malloc(M_WAITOK)
Fixes: b08d611de835 fix vlan locking to permit sx acquisition in ioctl calls
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D45852
---
sys/net/if_vlan.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/sys/net/if_vlan.c b/sys/net/if_vlan.c
index a30db9173383..774298d4a53a 100644
--- a/sys/net/if_vlan.c
+++ b/sys/net/if_vlan.c
@@ -509,11 +509,6 @@ vlan_growhash(struct ifvlantrunk *trunk, int howmuch)
return;
hash2 = malloc(sizeof(struct ifvlanhead) * n2, M_VLAN, M_WAITOK);
- if (hash2 == NULL) {
- printf("%s: out of memory -- hash size not changed\n",
- __func__);
- return; /* We can live with the old hash table */
- }
for (j = 0; j < n2; j++)
CK_SLIST_INIT(&hash2[j]);
for (i = 0; i < n; i++)