Files
linux/drivers/infiniband/hw/i40iw
Colin Ian King f70968f05d 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: 4b34e23f4e ("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>
2020-04-14 15:44:50 -03:00
..
2016-02-29 17:10:53 -05:00
2016-02-29 17:10:53 -05:00
2017-08-18 14:01:08 -04:00
2016-02-29 17:10:53 -05:00
2018-01-16 20:38:18 -07:00
2016-03-16 13:50:53 -04:00
2020-03-18 13:53:44 -03:00