Re: [PATCH for-rc] RDMA/qedr: Fix Null pointer dereference when running over iWARP without RDMA-CM

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jun 11, 2018 at 10:20:20AM +0300, Michal Kalderon wrote:
> Some RoCE specific code in qedr_modify_qp was run over an iWARP
> device when running perftest benchmarks without the -R option.
> 
> The commit 3e44e0ee0893 ("IB/providers: Avoid null netdev check for RoCE")
> exposed this. Dropping the check for NULL pointer on ndev in qedr_modify_qp
> lead to a null pointer dereference when running over iWARP. Before the code
> would identify ndev as being NULL and return an error.
> 
> Fixes: 3e44e0ee0893 ("IB/providers: Avoid null netdev check for RoCE")
> Signed-off-by: Ariel Elior <Ariel.Elior@xxxxxxxxxx>
> Signed-off-by: Michal Kalderon <Michal.Kalderon@xxxxxxxxxx>
> ---
>  drivers/infiniband/hw/qedr/verbs.c | 3 +++
>  1 file changed, 3 insertions(+)

Applied to for-rc, thanks

Jason
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux