Merge "ppp: take reference on channels netns"

This commit is contained in:
Linux Build Service Account 2017-01-05 02:08:57 -08:00 committed by Gerrit - the friendly Code Review server
commit 24df0afae9

View file

@ -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);