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
kmemcheck
Makefile -rw-r--r-- 1.2 KB
amdtopology.c -rw-r--r-- 3.9 KB
debug_pagetables.c -rw-r--r-- 997 bytes
dump_pagetables.c -rw-r--r-- 13.0 KB
extable.c -rw-r--r-- 4.7 KB
fault.c -rw-r--r-- 38.6 KB
highmem_32.c -rw-r--r-- 3.2 KB
hugetlbpage.c -rw-r--r-- 4.6 KB
ident_map.c -rw-r--r-- 2.9 KB
init.c -rw-r--r-- 23.7 KB
init_32.c -rw-r--r-- 24.5 KB
init_64.c -rw-r--r-- 36.5 KB
iomap_32.c -rw-r--r-- 3.5 KB
ioremap.c -rw-r--r-- 13.9 KB
kasan_init_64.c -rw-r--r-- 4.1 KB
kaslr.c -rw-r--r-- 7.1 KB
kmmio.c -rw-r--r-- 16.1 KB
mm_internal.h -rw-r--r-- 519 bytes
mmap.c -rw-r--r-- 4.6 KB
mmio-mod.c -rw-r--r-- 11.8 KB
mpx.c -rw-r--r-- 27.9 KB
numa.c -rw-r--r-- 22.7 KB
numa_32.c -rw-r--r-- 3.3 KB
numa_64.c -rw-r--r-- 215 bytes
numa_emulation.c -rw-r--r-- 13.0 KB
numa_internal.h -rw-r--r-- 726 bytes
pageattr-test.c -rw-r--r-- 5.3 KB
pageattr.c -rw-r--r-- 48.8 KB
pat.c -rw-r--r-- 28.1 KB
pat_internal.h -rw-r--r-- 1.4 KB
pat_rbtree.c -rw-r--r-- 6.7 KB
pf_in.c -rw-r--r-- 10.5 KB
pf_in.h -rw-r--r-- 1.4 KB
pgtable.c -rw-r--r-- 16.5 KB
pgtable_32.c -rw-r--r-- 2.2 KB
physaddr.c -rw-r--r-- 2.2 KB
physaddr.h -rw-r--r-- 192 bytes
pkeys.c -rw-r--r-- 6.5 KB
setup_nx.c -rw-r--r-- 1.3 KB
srat.c -rw-r--r-- 2.8 KB
testmmiotrace.c -rw-r--r-- 3.1 KB
tlb.c -rw-r--r-- 10.0 KB

back to top