summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorCarlos López <clopez@suse.de>2024-07-15 13:24:34 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-08-03 08:54:10 +0200
commite511167e65d332d07b3c7a3d5a741ee9c19a8c27 (patch)
tree95b01c7acf3b5ee1f759c38f7968d73ba1cbd957 /lib
parent145bc12827186ec805414a1eb2e24b6ed7bf294b (diff)
downloadlinux-e511167e65d332d07b3c7a3d5a741ee9c19a8c27.tar.gz
linux-e511167e65d332d07b3c7a3d5a741ee9c19a8c27.tar.bz2
linux-e511167e65d332d07b3c7a3d5a741ee9c19a8c27.zip
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: a91ff09d39f9b ("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>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions