]> git.baikalelectronics.ru Git - kernel.git/commit
SUNRPC/cache: add module_put() on error path in cache_open()
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Fri, 22 Mar 2013 20:36:44 +0000 (00:36 +0400)
committerJ. Bruce Fields <bfields@redhat.com>
Wed, 3 Apr 2013 19:32:32 +0000 (15:32 -0400)
commitc60e51e256706d29a19b0bb7f6fe2dff94689ae8
treed5a4d2cb12ef87e91296fac1f4765394ff9a147f
parent4a851c3233a539c533158264a77acb2d2a06220f
SUNRPC/cache: add module_put() on error path in cache_open()

If kmalloc() fails in cache_open(), module cd->owner left locked.
The patch adds module_put(cd->owner) on this path.

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

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
net/sunrpc/cache.c