Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1731715
| From | Leon Romanovsky <leon@kernel.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] IB/core: fix incorrect fall-through on switch statement |
| Date | 2017-09-13 18:50 +0200 |
| Message-ID | <upj1o-1ns-5@gated-at.bofh.it> (permalink) |
| References | <uozrA-5Ep-25@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
[Multipart message — attachments visible in raw view] - view raw
On Mon, Sep 11, 2017 at 05:03:13PM +0100, Colin King wrote:
> From: Colin Ian King <colin.king@canonical.com>
>
> 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>
> ---
> drivers/infiniband/hw/ocrdma/ocrdma_hw.c | 3 +++
> 1 file changed, 3 insertions(+)
>
Except the wrong title: IB/core -> IB/ocrdma
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Thanks
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH] IB/core: fix incorrect fall-through on switch statement Colin King <colin.king@canonical.com> - 2017-09-11 18:10 +0200
Re: [PATCH] IB/core: fix incorrect fall-through on switch statement Leon Romanovsky <leon@kernel.org> - 2017-09-13 18:50 +0200
Re: [PATCH] IB/core: fix incorrect fall-through on switch statement Doug Ledford <dledford@redhat.com> - 2017-09-22 19:20 +0200
csiph-web