]> git.baikalelectronics.ru Git - kernel.git/commit
net: wan: sbni: fix device usage count
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Thu, 3 Sep 2015 06:00:30 +0000 (11:30 +0530)
committerDavid S. Miller <davem@davemloft.net>
Sun, 6 Sep 2015 00:32:53 +0000 (17:32 -0700)
commit42a610f5b4b8d70244494d4b9f7e931c62a1e550
tree24e89e1951cff4c3005e89b3eba56bfd97c83165
parenta23ff0413f63038650dd2ae055199ecff08fbadc
net: wan: sbni: fix device usage count

dev_get_by_name() will increment the usage count if the matching device
is found. But we were not decrementing the count if we have got the
device and the device is non-active.

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wan/sbni.c