Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit a7823c79 authored by Alexey Khoroshilov's avatar Alexey Khoroshilov Committed by J. Bruce Fields
Browse files

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: default avatarAlexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
parent ff7c4b36
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment