diff options
author | Chaitanya Kulkarni <kch@nvidia.com> | 2022-07-19 02:12:32 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-08-03 02:22:51 +0300 |
commit | 1040415c29f065e47b6b4df9f3902602d0382d3d (patch) | |
tree | bed6aab44cec2fe41bff0beecf66696db8af7821 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 9db056e9506ccf74405941777ae128947b81900d (diff) | |
download | linux-1040415c29f065e47b6b4df9f3902602d0382d3d.tar.xz |
nvmet-auth: fix return value check in auth send
nvmet_setup_auth() return type is int and currently it uses status
variable that is of type u16 in nvmet_execute_auth_send().
Catch the return value of nvmet_setup_auth() into int and set the
NVME_SC_INTERNAL as status variable before we jump to error.
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Chaitanya Kulkarni <kch@nvidia.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
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