]> git.baikalelectronics.ru Git - kernel.git/commit
infiniband/qedr: Potential null ptr dereference of qp
authorAditya Pakki <pakki001@umn.edu>
Mon, 24 Dec 2018 18:24:45 +0000 (12:24 -0600)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 2 Jan 2019 23:08:38 +0000 (16:08 -0700)
commit9882d78f2f2ce62a518144204108345572438c5b
tree4a3aeb7be3332b76b16ab1778a9eba8abc1527b6
parentb90b2b2956db5cd2c3e981e53c1e1602f99e0054
infiniband/qedr: Potential null ptr dereference of qp

idr_find() may fail and return a NULL pointer. The fix checks the return
value of the function and returns an error in case of NULL.

Signed-off-by: Aditya Pakki <pakki001@umn.edu>
Acked-by: Michal Kalderon <michal.kalderon@marvell.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/qedr/qedr_iw_cm.c