Re: [PATCH] scsi: bnx2fc: Check if sense buffer has been allocated during completion

From: Martin K. Petersen
Date: Thu Jun 20 2019 - 16:51:07 EST



Hi Young,

> sc_cmd->sense_buffer is not guaranteed to be allocated so we need to
> sc_cmd->check if the pointer is NULL before trying to copy anything
> into it.

bnx2fc does not appear to use a driver-specific sense buffer.

--
Martin K. Petersen Oracle Linux Engineering