lkml.org 
[lkml]   [2021]   [May]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH rdma-rc] RDMA/siw: Properly check send and receive CQ pointers
    On Sun, May 09, 2021 at 02:39:21PM +0300, Leon Romanovsky wrote:
    > From: Leon Romanovsky <leonro@nvidia.com>
    >
    > The check for the NULL of pointer received from container_of is
    > incorrect by definition as it points to some random memory.
    >
    > Change such check with proper NULL check of SIW QP attributes.
    >
    > Fixes: 303ae1cdfdf7 ("rdma/siw: application interface")
    > Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
    > Reviewed-by: Bernard Metzler <bmt@zurich.ibm.com>
    > ---
    > drivers/infiniband/sw/siw/siw_verbs.c | 9 +++------
    > 1 file changed, 3 insertions(+), 6 deletions(-)

    Applied to for-rc, thanks

    Jason

    \
     
     \ /
      Last update: 2021-05-10 21:22    [W:3.948 / U:0.252 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site