On Fri, Jul 18, 2014 at 11:00 PM, Paolo Bonzini <pbonz...@redhat.com> wrote:
> Il 18/07/2014 16:57, Ming Lei ha scritto:
>> -     if (sc->sense_buffer) {
>> +     if (resp->sense_len) {
>
> In the (unlikely) case that sc->sense_buffer == NULL, you'd pass a NULL
> to memcpy.

Every valid scsi_cmnd should have non NULL sc->sense_buffer, please
see scsi_host_alloc_command().

Thanks,
--
Ming Lei
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to