diff options
author | Conrad Meyer <cem@FreeBSD.org> | 2015-11-18 23:53:13 +0000 |
---|---|---|
committer | Conrad Meyer <cem@FreeBSD.org> | 2015-11-18 23:53:13 +0000 |
commit | 3fbd30d4952cad83641d876ff101e17e55cd6354 (patch) | |
tree | ba6a77a0fe755b08a3cc6d9d65348846d40cf2e5 /tools/regression/netinet/ip_id_period | |
parent | dc5c5b1da8c61535f50ff7f0e9f140eff551f960 (diff) |
in_getmulti: Fix recursion on if_addr_lock on malloc failure
When the M_NOWAIT allocation fails, we recurse the if_addr_lock trying
to clean up. Reorder the cleanup after dropping the if_addr_lock. The
obvious race is already possible between if_addmulti and IF_ADDR_WLOCK
above, so it must be ok.
Submitted by: Ryan Libby <rlibby@gmail.com>
Reviewed by: jhb
Found with: M_NOWAIT failure injection testing
Sponsored by: EMC / Isilon Storage Division
Differential Revision: https://reviews.freebsd.org/D4138
Notes
Notes:
svn path=/head/; revision=291040
Diffstat (limited to 'tools/regression/netinet/ip_id_period')
0 files changed, 0 insertions, 0 deletions