net: l2tp_eth: fix kernel panic on rmmod l2tp_eth
authorEric Dumazet <edumazet@google.com>
Thu, 7 Jun 2012 00:07:20 +0000 (00:07 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 7 Jun 2012 20:02:20 +0000 (13:02 -0700)
commita06998b88b1651c5f71c0e35f528bf2057188ead
tree440f4da0f692186c728d5a1ebff7889c6844461d
parentda2e852612967a53d17de930929574444a67fb52
net: l2tp_eth: fix kernel panic on rmmod l2tp_eth

We must prevent module unloading if some devices are still attached to
l2tp_eth driver.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: Denys Fedoryshchenko <denys@visp.net.lb>
Tested-by: Denys Fedoryshchenko <denys@visp.net.lb>
Cc: James Chapman <jchapman@katalix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/l2tp/l2tp_eth.c