]> git.baikalelectronics.ru Git - kernel.git/commit
farsync: add module_put to error path in fst_open()
authorPavel Shved <shved@ispras.ru>
Fri, 17 Jun 2011 06:25:10 +0000 (06:25 +0000)
committerDavid S. Miller <davem@conan.davemloft.net>
Fri, 17 Jun 2011 19:27:32 +0000 (15:27 -0400)
commit8959826b663946ba3c5d1bf820e95aae1421ca24
tree85ed9777696fae76834a1e546bb1d733a73abc33
parente6943b0ee9413664290238c95303750a86caf948
farsync: add module_put to error path in fst_open()

The fst_open() function, after a successful try_module_get() may return
an error code if hdlc_open() returns it.  However, it does not put the
module on this error path.

This patch adds the necessary module_put() call.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Pavel Shved <shved@ispras.ru>
Signed-off-by: David S. Miller <davem@conan.davemloft.net>
drivers/net/wan/farsync.c