Re: [PATCH rdma-next] RDMA/qedr: Fix null-pointer dereference when calling rdma_user_mmap_get_offset

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

 



On Mon, Nov 18, 2019 at 05:06:45PM +0200, Michal Kalderon wrote:
> When running against rdma-core that doesn't support doorbell
> recovery, the rdma_user_mmap_entry won't be allocated for
> doorbell recovery related mappings.
> We have a flag indicating whether rdma-core supports doorbell
> recovery or not which was used during initialization, however
> some cases didn't check that the rdma_user_mmap_entry exists
> before attempting to acquire it's offset.
> 
> Fixes: 97f612509294 ("RDMA/qedr: Add doorbell overflow recovery support")
> Signed-off-by: Ariel Elior <ariel.elior@xxxxxxxxxxx>
> Signed-off-by: Michal Kalderon <michal.kalderon@xxxxxxxxxxx>
> ---
>  drivers/infiniband/hw/qedr/verbs.c | 15 ++++++++++-----
>  1 file changed, 10 insertions(+), 5 deletions(-)

Applied to for-next, thanks

Jason



[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