diff options
| author | Eric Dumazet <[email protected]> | 2009-10-19 06:41:58 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2009-10-20 04:34:20 +0000 |
| commit | 55b8050353c4a212c94d7156e2bd5885225b869b (patch) | |
| tree | 013778c4d48b946b2c565f8b55f40e505ec255ce /drivers/scsi/mpt2sas/mpi/mpi2_raid.h | |
| parent | bluetooth: static lock key fix (diff) | |
| download | kernel-55b8050353c4a212c94d7156e2bd5885225b869b.tar.gz kernel-55b8050353c4a212c94d7156e2bd5885225b869b.zip | |
net: Fix IP_MULTICAST_IF
ipv4/ipv6 setsockopt(IP_MULTICAST_IF) have dubious __dev_get_by_index() calls.
This function should be called only with RTNL or dev_base_lock held, or reader
could see a corrupt hash chain and eventually enter an endless loop.
Fix is to call dev_get_by_index()/dev_put().
If this happens to be performance critical, we could define a new dev_exist_by_index()
function to avoid touching dev refcount.
Signed-off-by: Eric Dumazet <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/scsi/mpt2sas/mpi/mpi2_raid.h')
0 files changed, 0 insertions, 0 deletions
