diff options
| author | Colin Ian King <colin.king@canonical.com> | 2017-09-11 17:03:13 +0100 |
|---|---|---|
| committer | Ben Hutchings <ben@decadent.org.uk> | 2018-01-01 20:51:37 +0000 |
| commit | 78a0f965e563a8a98aca9c73e172c6041df3d6db (patch) | |
| tree | b0bcc8f650f6c3c9d5d6c94e942e5f3f73463708 /include/linux/devfreq.h | |
| parent | a8ff7ff1529876e3690015270980fdc5e9967f6e (diff) | |
IB/ocrdma: fix incorrect fall-through on switch statement
commit 06564f60859bdf7e73d70ae35d7e285e96ae9c46 upstream.
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>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'include/linux/devfreq.h')
0 files changed, 0 insertions, 0 deletions
