sst-linux/drivers/s390
Carlos López cc8b7284d5 s390/dasd: fix error checks in dasd_copy_pair_store()
[ Upstream commit 8e64d2356cbc800b4cd0e3e614797f76bcf0cdb8 ]

dasd_add_busid() can return an error via ERR_PTR() if an allocation
fails. However, two callsites in dasd_copy_pair_store() do not check
the result, potentially resulting in a NULL pointer dereference. Fix
this by checking the result with IS_ERR() and returning the error up
the stack.

Fixes: a91ff09d39 ("s390/dasd: add copy pair setup")
Signed-off-by: Carlos López <clopez@suse.de>
Signed-off-by: Stefan Haberland <sth@linux.ibm.com>
Link: https://lore.kernel.org/r/20240715112434.2111291-3-sth@linux.ibm.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-08-03 08:49:29 +02:00
..
block s390/dasd: fix error checks in dasd_copy_pair_store() 2024-08-03 08:49:29 +02:00
char s390/sclp: Fix sclp_init() cleanup on failure 2024-07-25 09:49:15 +02:00
cio s390/cio: fix tracepoint subchannel type field 2024-06-12 11:03:05 +02:00
crypto s390/pkey: Wipe sensitive data on failure 2024-07-11 12:47:10 +02:00
net s390/qeth: Fix kernel panic after setting hsuid 2024-05-17 11:56:01 +02:00
scsi
virtio
Makefile