diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2007-07-30 16:35:46 -0700 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-07-31 02:28:13 -0700 |
commit | 7f988eab57bd22884bbc452fb04c6c18738666b3 (patch) | |
tree | d679707a0251dc3d399de7e52c5499dff521c86e /drivers/net/loopback.c | |
parent | 7ce1b0edcb11f90f6fc5e0ceecff467f329889a0 (diff) | |
download | linux-7f988eab57bd22884bbc452fb04c6c18738666b3.tar.gz linux-7f988eab57bd22884bbc452fb04c6c18738666b3.tar.bz2 linux-7f988eab57bd22884bbc452fb04c6c18738666b3.zip |
[NET]: Take dev_base_lock when moving device name hash list entry
When we added name-based hashing the dev_base_lock was designated as the
lock to take when changing the name hash list. Unfortunately, because
it was a preexisting lock that just happened to be taken in the right
spots we neglected to take it in dev_change_name.
The race can affect calles of __dev_get_by_name that do so without taking
the RTNL. They may end up walking down the wrong hash chain and end up
missing the device that they're looking for.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/loopback.c')
0 files changed, 0 insertions, 0 deletions