diff options
author | 2024-06-11 15:37:00 +0800 | |
---|---|---|
committer | 2024-06-12 10:53:20 -0600 | |
commit | 9b1ebce6a1fded90d4a1c6c57dc6262dac4c4c14 (patch) | |
tree | 6f6c1ee32b4768b2e58fa882daace7fc80486ef3 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Merge tag 'nvme-6.10-2024-06-05' of git://git.infradead.org/nvme into block-6.10 (diff) | |
download | wireguard-linux-9b1ebce6a1fded90d4a1c6c57dc6262dac4c4c14.tar.xz wireguard-linux-9b1ebce6a1fded90d4a1c6c57dc6262dac4c4c14.zip |
block: sed-opal: avoid possible wrong address reference in read_sed_opal_key()
Clang static checker (scan-build) warning:
block/sed-opal.c:line 317, column 3
Value stored to 'ret' is never read.
Fix this problem by returning the error code when keyring_search() failed.
Otherwise, 'key' will have a wrong value when 'kerf' stores the error code.
Fixes: 3bfeb6125664 ("block: sed-opal: keyring support for SED keys")
Signed-off-by: Su Hui <suhui@nfschina.com>
Link: https://lore.kernel.org/r/20240611073659.429582-1-suhui@nfschina.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions