ppp: release rtnl mutex when interface creation fails
authorGuillaume Nault <g.nault@alphalink.fr>
Mon, 7 Mar 2016 18:36:44 +0000 (19:36 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Mar 2016 21:11:31 +0000 (16:11 -0500)
commit6faac63a6986f29ef39827f460edd3a5ba64ad5c
tree9009dfde69b03b2fc4efdebb2c851b6bc2d6a24f
parent4d06dd537f95683aba3651098ae288b7cbff8274
ppp: release rtnl mutex when interface creation fails

Add missing rtnl_unlock() in the error path of ppp_create_interface().

Fixes: 58a89ecaca53 ("ppp: fix lockdep splat in ppp_dev_uninit()")
Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ppp/ppp_generic.c