diff options
author | Carlos López <clopez@suse.de> | 2024-07-15 14:24:34 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2024-07-15 19:57:39 +0300 |
commit | 8e64d2356cbc800b4cd0e3e614797f76bcf0cdb8 (patch) | |
tree | f66033a2029ee472f688560d4eda7f0de5424fe8 /scripts/generate_rust_analyzer.py | |
parent | 1f5a33315362cb8ade2b15489c985ada0cc8623b (diff) | |
download | linux-8e64d2356cbc800b4cd0e3e614797f76bcf0cdb8.tar.xz |
s390/dasd: fix error checks in dasd_copy_pair_store()
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>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions