summaryrefslogtreecommitdiff
path: root/drivers/rtc
diff options
context:
space:
mode:
authorColy Li <colyli@suse.de>2020-01-24 01:01:29 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-02-24 08:37:03 +0100
commitcea9007ebb956945f1fb4a4922cdca837e09ef06 (patch)
tree5b8516fa54392ca6b30c3703be2e7ee49ec098d4 /drivers/rtc
parent7967c3299e3fb6d5b4ff6373723cf98c8b700593 (diff)
downloadlinux-cea9007ebb956945f1fb4a4922cdca837e09ef06.tar.gz
linux-cea9007ebb956945f1fb4a4922cdca837e09ef06.tar.bz2
linux-cea9007ebb956945f1fb4a4922cdca837e09ef06.zip
bcache: properly initialize 'path' and 'err' in register_bcache()
[ Upstream commit 29cda393bcaad160c4bf3676ddd99855adafc72f ] Patch "bcache: rework error unwinding in register_bcache" from Christoph Hellwig changes the local variables 'path' and 'err' in undefined initial state. If the code in register_bcache() jumps to label 'out:' or 'out_module_put:' by goto, these two variables might be reference with undefined value by the following line, out_module_put: module_put(THIS_MODULE); out: pr_info("error %s: %s", path, err); return ret; Therefore this patch initializes these two local variables properly in register_bcache() to avoid such issue. Signed-off-by: Coly Li <colyli@suse.de> Signed-off-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/rtc')
0 files changed, 0 insertions, 0 deletions