aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gen_compile_commands.py
diff options
context:
space:
mode:
authorLogan Gunthorpe <[email protected]>2019-07-31 23:35:33 +0000
committerSagi Grimberg <[email protected]>2019-08-01 00:57:21 +0000
commitcfc1a1af56200362d1508b82b9a3cc3acb2eae0c (patch)
tree143bf8acdebccf6d87b8c113fb2ec2d11fce3378 /scripts/gen_compile_commands.py
parentnvmet-loop: Flush nvme_delete_wq when removing the port (diff)
downloadkernel-cfc1a1af56200362d1508b82b9a3cc3acb2eae0c.tar.gz
kernel-cfc1a1af56200362d1508b82b9a3cc3acb2eae0c.zip
nvmet-file: fix nvmet_file_flush() always returning an error
Presently, nvmet_file_flush() always returns a call to errno_to_nvme_status() but that helper doesn't take into account the case when errno=0. So nvmet_file_flush() always returns an error code. All other callers of errno_to_nvme_status() check for success before calling it. To fix this, ensure errno_to_nvme_status() returns success if the errno is zero. This should prevent future mistakes like this from happening. Fixes: c6aa3542e010 ("nvmet: add error log support for file backend") Signed-off-by: Logan Gunthorpe <[email protected]> Reviewed-by: Sagi Grimberg <[email protected]> Reviewed-by: Chaitanya Kulkarni <[email protected]> Signed-off-by: Sagi Grimberg <[email protected]>
Diffstat (limited to 'scripts/gen_compile_commands.py')
0 files changed, 0 insertions, 0 deletions