mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
atm: Bad locking on br2684_devs modifications.
The list_del happens under read-locked devs_lock. Signed-off-by: Pavel Emelyanov <xemul@openvz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
65e4113684
commit
1e0ba0060f
1 changed files with 2 additions and 2 deletions
|
@ -346,9 +346,9 @@ static void br2684_push(struct atm_vcc *atmvcc, struct sk_buff *skb)
|
|||
/* skb==NULL means VCC is being destroyed */
|
||||
br2684_close_vcc(brvcc);
|
||||
if (list_empty(&brdev->brvccs)) {
|
||||
read_lock(&devs_lock);
|
||||
write_lock_irq(&devs_lock);
|
||||
list_del(&brdev->br2684_devs);
|
||||
read_unlock(&devs_lock);
|
||||
write_unlock_irq(&devs_lock);
|
||||
unregister_netdev(net_dev);
|
||||
}
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue