2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-06 12:44:14 +08:00
linux-next/drivers/scsi/cxgbi
Colin Ian King b92a4a9f7b scsi: cxgb4i: Fix dereference of pointer tdata before it is null checked
Currently pointer tdata is being dereferenced on the initialization of
pointer skb before tdata is null checked. This could lead to a potential
null pointer dereference.  Fix this by dereferencing tdata after tdata has
been null pointer sanity checked.

Link: https://lore.kernel.org/r/20200709135217.1408105-1-colin.king@canonical.com
Fixes: e33c248228 ("scsi: cxgb4i: Add support for iSCSI segmentation offload")
Addresses-Coverity: ("Dereference before null check")
Acked-by: Varun Prakash <varun@chelsio.com>
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2020-07-13 23:12:30 -04:00
..
cxgb3i scsi: cxgb4i: Add support for iSCSI segmentation offload 2020-07-08 01:41:05 -04:00
cxgb4i scsi: cxgb4i: Add support for iSCSI segmentation offload 2020-07-08 01:41:05 -04:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
libcxgbi.c scsi: cxgb4i: Fix dereference of pointer tdata before it is null checked 2020-07-13 23:12:30 -04:00
libcxgbi.h scsi: cxgb4i: Add support for iSCSI segmentation offload 2020-07-08 01:41:05 -04:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00