]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
s390/dasd: fix double module refcount decrement
authorMiroslav Franc <mfranc@suse.cz>
Fri, 9 Feb 2024 12:45:22 +0000 (13:45 +0100)
committerSasha Levin <sashal@kernel.org>
Tue, 26 Mar 2024 22:19:17 +0000 (18:19 -0400)
commitec09bcab32fc4765e0cc97e1b72cdd067135f37e
tree4031b29e9d97277d9e2ae337689a9db161901902
parent0ef87c0bb4eeb959d517a1cbd59c337a69013034
s390/dasd: fix double module refcount decrement

[ Upstream commit c3116e62ddeff79cae342147753ce596f01fcf06 ]

Once the discipline is associated with the device, deleting the device
takes care of decrementing the module's refcount.  Doing it manually on
this error path causes refcount to artificially decrease on each error
while it should just stay the same.

Fixes: c020d722b110 ("s390/dasd: fix panic during offline processing")
Signed-off-by: Miroslav Franc <mfranc@suse.cz>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
Signed-off-by: Stefan Haberland <sth@linux.ibm.com>
Link: https://lore.kernel.org/r/20240209124522.3697827-3-sth@linux.ibm.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/s390/block/dasd.c