diff options
author | Colin Ian King <colin.king@canonical.com> | 2020-04-01 23:49:21 +0100 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2020-04-14 15:44:50 -0300 |
commit | f70968f05de4e7c24d839ca0d3e40f17c8024498 (patch) | |
tree | 1d435e19a2d9c49086cf60ca7057445308e60726 /drivers/infiniband/core/cm.c | |
parent | 8f3d9f354286745c751374f5f1fcafee6b3f3136 (diff) | |
download | linux-f70968f05de4e7c24d839ca0d3e40f17c8024498.tar.bz2 |
i40iw: fix null pointer dereference on a null wqe pointer
Currently the null check for wqe is incorrect and lets a null wqe
be passed to set_64bit_val and this indexes into the null pointer
causing a null pointer dereference. Fix this by fixing the null
pointer check to return an error if wqe is null.
Link: https://lore.kernel.org/r/20200401224921.405279-1-colin.king@canonical.com
Addresses-Coverity: ("dereference after a null check")
Fixes: 4b34e23f4eaa ("i40iw: Report correct firmware version")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/core/cm.c')
0 files changed, 0 insertions, 0 deletions