From: Alexey Khoroshilov Date: Wed, 27 Mar 2013 13:08:46 +0000 (+0100) Subject: drbd: add module_put() on error path in drbd_proc_open() X-Git-Tag: omap-for-v3.10/fixes-for-merge-window-part2~10^2~18 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=193d01532a730a53cbc74462799dbc43968b97fd;p=pandora-kernel.git drbd: add module_put() on error path in drbd_proc_open() If single_open() fails in drbd_proc_open(), module refcount is left incremented. The patch adds module_put() on the error path. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg Signed-off-by: Jens Axboe --- Reading git-diff-tree failed