diff options
author | Jiasheng Jiang <[email protected]> | 2021-12-16 18:14:49 +0800 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2022-01-05 00:19:28 -0500 |
commit | aa7069d840dab6bef4887657b94e439c82ae985a (patch) | |
tree | 6455b555ae956d88d3208c1d84987c208a218156 /lib/test_fortify/write_overflow-memcpy.c | |
parent | c77b1f8a8faeeba43c694d9d09d0b25a4f52cf37 (diff) |
scsi: qedf: Fix potential dereference of NULL pointer
The return value of dma_alloc_coherent() needs to be checked to avoid use
of NULL pointer in case of an allocation failure.
Link: https://lore.kernel.org/r/[email protected]
Fixes: 61d8658b4a43 ("scsi: qedf: Add QLogic FastLinQ offload FCoE driver framework.")
Acked-by: Saurav Kashyap <[email protected]>
Signed-off-by: Jiasheng Jiang <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-memcpy.c')
0 files changed, 0 insertions, 0 deletions