Merge "ppp: take reference on channels netns"
This commit is contained in:
commit
24df0afae9
1 changed files with 2 additions and 0 deletions
|
@ -2390,6 +2390,8 @@ ppp_unregister_channel(struct ppp_channel *chan)
|
|||
spin_lock_bh(&pn->all_channels_lock);
|
||||
list_del(&pch->list);
|
||||
spin_unlock_bh(&pn->all_channels_lock);
|
||||
put_net(pch->chan_net);
|
||||
pch->chan_net = NULL;
|
||||
|
||||
pch->file.dead = 1;
|
||||
wake_up_interruptible(&pch->file.rwait);
|
||||
|
|
Loading…
Add table
Reference in a new issue