mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-30 05:36:10 +00:00
if_vlan: Stop checking for failures from malloc(M_WAITOK)
Fixes: b08d611de8
fix vlan locking to permit sx acquisition in ioctl calls
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D45852
This commit is contained in:
parent
2a11988663
commit
07b16b1e2a
|
@ -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++)
|
||||
|
|
Loading…
Reference in a new issue