Revision 06564f60859bdf7e73d70ae35d7e285e96ae9c46 authored by Colin Ian King on 11 September 2017, 16:03:13 UTC, committed by Doug Ledford on 22 September 2017, 17:16:00 UTC
In the case where mbox_status is OCRDMA_MBX_STATUS_FAILED and
add_status is OCRDMA_MBX_STATUS_FAILED err_num is assigned -EAGAIN
however the case OCRDMA_MBX_STATUS_FAILED is missing a break and
falls through to the default case which then re-assigns err_num
to -EFAULT.   Fix this so that err_num is assigned to -EAGAIN
for the add_status OCRDMA_MBX_STATUS_FAILED case and -EFAULT
otherwise.

Detected by CoverityScan CID#703125 ("Missing break in switch")

Fixes: fe2caefcdf58 ("RDMA/ocrdma: Add driver for Emulex OneConnect IBoE RDMA adapter")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
1 parent af3c79b
History
File Mode Size
Makefile -rw-r--r-- 889 bytes
aes-spe-core.S -rw-r--r-- 7.7 KB
aes-spe-glue.c -rw-r--r-- 14.0 KB
aes-spe-keys.S -rw-r--r-- 6.2 KB
aes-spe-modes.S -rw-r--r-- 14.6 KB
aes-spe-regs.h -rw-r--r-- 1.3 KB
aes-tab-4k.S -rw-r--r-- 14.3 KB
crc-vpmsum_test.c -rw-r--r-- 3.2 KB
crc32-vpmsum_core.S -rw-r--r-- 14.1 KB
crc32c-vpmsum_asm.S -rw-r--r-- 27.3 KB
crc32c-vpmsum_glue.c -rw-r--r-- 3.9 KB
crct10dif-vpmsum_asm.S -rw-r--r-- 24.3 KB
crct10dif-vpmsum_glue.c -rw-r--r-- 3.0 KB
md5-asm.S -rw-r--r-- 7.5 KB
md5-glue.c -rw-r--r-- 3.8 KB
sha1-powerpc-asm.S -rw-r--r-- 3.8 KB
sha1-spe-asm.S -rw-r--r-- 10.0 KB
sha1-spe-glue.c -rw-r--r-- 5.0 KB
sha1.c -rw-r--r-- 3.6 KB
sha256-spe-asm.S -rw-r--r-- 11.1 KB
sha256-spe-glue.c -rw-r--r-- 6.8 KB

back to top