s390/dasd: fix double module refcount decrement
authorMiroslav Franc <mfranc@suse.cz>
Fri, 9 Feb 2024 12:45:22 +0000 (13:45 +0100)
committerJens Axboe <axboe@kernel.dk>
Fri, 9 Feb 2024 14:33:06 +0000 (07:33 -0700)
commitc3116e62ddeff79cae342147753ce596f01fcf06
treee8737fb92f84f17d39b7352bd890398602b6335c
parent1df0f512faa71f1e106f36529ceff52f48209e30
s390/dasd: fix double module refcount decrement

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>
drivers/s390/block/dasd.c