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
Kconfig -rw-r--r-- 1.9 KB
Makefile -rw-r--r-- 1.1 KB
apic.c -rw-r--r-- 5.1 KB
debugfs.c -rw-r--r-- 362 bytes
debugfs.h -rw-r--r-- 123 bytes
efi.c -rw-r--r-- 4.5 KB
enlighten.c -rw-r--r-- 8.7 KB
enlighten_hvm.c -rw-r--r-- 4.9 KB
enlighten_pv.c -rw-r--r-- 35.2 KB
enlighten_pvh.c -rw-r--r-- 2.8 KB
grant-table.c -rw-r--r-- 3.8 KB
irq.c -rw-r--r-- 3.3 KB
mmu.c -rw-r--r-- 4.7 KB
mmu.h -rw-r--r-- 616 bytes
mmu_hvm.c -rw-r--r-- 1.7 KB
mmu_pv.c -rw-r--r-- 69.0 KB
multicalls.c -rw-r--r-- 4.8 KB
multicalls.h -rw-r--r-- 1.7 KB
p2m.c -rw-r--r-- 22.0 KB
pci-swiotlb-xen.c -rw-r--r-- 2.0 KB
platform-pci-unplug.c -rw-r--r-- 6.1 KB
pmu.c -rw-r--r-- 13.4 KB
pmu.h -rw-r--r-- 593 bytes
setup.c -rw-r--r-- 27.9 KB
smp.c -rw-r--r-- 6.7 KB
smp.h -rw-r--r-- 1.1 KB
smp_hvm.c -rw-r--r-- 1.7 KB
smp_pv.c -rw-r--r-- 11.4 KB
spinlock.c -rw-r--r-- 3.5 KB
suspend.c -rw-r--r-- 1.0 KB
suspend_hvm.c -rw-r--r-- 323 bytes
suspend_pv.c -rw-r--r-- 993 bytes
time.c -rw-r--r-- 11.5 KB
trace.c -rw-r--r-- 482 bytes
vdso.h -rw-r--r-- 211 bytes
vga.c -rw-r--r-- 2.6 KB
xen-asm.S -rw-r--r-- 3.7 KB
xen-asm.h -rw-r--r-- 283 bytes
xen-asm_32.S -rw-r--r-- 6.3 KB
xen-asm_64.S -rw-r--r-- 2.7 KB
xen-head.S -rw-r--r-- 2.3 KB
xen-ops.h -rw-r--r-- 4.5 KB
xen-pvh.S -rw-r--r-- 4.0 KB

back to top