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
File | Mode | Size |
---|---|---|
asm | ||
os-Linux | ||
shared | ||
vdso | ||
Kconfig | -rw-r--r-- | 1.4 KB |
Makefile | -rw-r--r-- | 1.1 KB |
bugs_32.c | -rw-r--r-- | 1.8 KB |
bugs_64.c | -rw-r--r-- | 195 bytes |
checksum_32.S | -rw-r--r-- | 4.8 KB |
delay.c | -rw-r--r-- | 1.1 KB |
elfcore.c | -rw-r--r-- | 1.7 KB |
fault.c | -rw-r--r-- | 659 bytes |
ldt.c | -rw-r--r-- | 8.6 KB |
mem_32.c | -rw-r--r-- | 1.1 KB |
mem_64.c | -rw-r--r-- | 186 bytes |
ptrace_32.c | -rw-r--r-- | 6.0 KB |
ptrace_64.c | -rw-r--r-- | 5.8 KB |
ptrace_user.c | -rw-r--r-- | 419 bytes |
setjmp_32.S | -rw-r--r-- | 1.0 KB |
setjmp_64.S | -rw-r--r-- | 1002 bytes |
signal.c | -rw-r--r-- | 14.1 KB |
stub_32.S | -rw-r--r-- | 743 bytes |
stub_64.S | -rw-r--r-- | 756 bytes |
stub_segv.c | -rw-r--r-- | 434 bytes |
sys_call_table_32.c | -rw-r--r-- | 1.3 KB |
sys_call_table_64.c | -rw-r--r-- | 1.6 KB |
syscalls_32.c | -rw-r--r-- | 128 bytes |
syscalls_64.c | -rw-r--r-- | 2.3 KB |
sysrq_32.c | -rw-r--r-- | 1.1 KB |
sysrq_64.c | -rw-r--r-- | 1.3 KB |
tls_32.c | -rw-r--r-- | 8.9 KB |
tls_64.c | -rw-r--r-- | 389 bytes |
user-offsets.c | -rw-r--r-- | 2.5 KB |
Computing file changes ...