net: use right lock in __dev_remove_offload
authorEric Dumazet <edumazet@google.com>
Fri, 16 Nov 2012 08:08:23 +0000 (08:08 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 Nov 2012 18:41:08 +0000 (13:41 -0500)
commitc53aa5058ad5ca8876a47d6639ad4d4f2c5ed584
treecff2b24d78e6fcbfa37e168c67703a8800885966
parent545b29019c8959c805abfe8194d47e989f1a6e5f
net: use right lock in __dev_remove_offload

offload_base is protected by offload_lock, not ptype_lock

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Vlad Yasevich <vyasevic@redhat.com>
Acked-by: Vlad Yasevich <vyasevic@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c