]> git.baikalelectronics.ru Git - kernel.git/commit
ppp: Destroy the mutex when cleanup
authorGao Feng <gfree.wind@vip.163.com>
Tue, 31 Oct 2017 10:25:37 +0000 (18:25 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 Nov 2017 12:21:02 +0000 (21:21 +0900)
commitecfce80ad941f1591a085e263bbc8b130ad31a5a
treeecffec7153178017a19e256aa970e7827fc1ebca
parent0b1154de57ff05b5f1f3d8f1b3cbbd73871f73c3
ppp: Destroy the mutex when cleanup

The mutex_destroy only makes sense when enable DEBUG_MUTEX. For the
good readbility, it's better to invoke it in exit func when the init
func invokes mutex_init.

Signed-off-by: Gao Feng <gfree.wind@vip.163.com>
Acked-by: Guillaume Nault <g.nault@alphalink.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ppp/ppp_generic.c