From: "Martin K. Petersen" <martin.petersen@oracle.com>
To: Young Xiao <92siuyang@gmail.com>
Cc: QLogic-Storage-Upstream@qlogic.com, jejb@linux.ibm.com,
martin.petersen@oracle.com, linux-scsi@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] scsi: bnx2fc: Check if sense buffer has been allocated during completion
Date: Thu, 20 Jun 2019 16:50:53 -0400 [thread overview]
Message-ID: <yq1v9x0q8uq.fsf@oracle.com> (raw)
In-Reply-To: <1560501397-831-1-git-send-email-92siuyang@gmail.com> (Young Xiao's message of "Fri, 14 Jun 2019 16:36:37 +0800")
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
prev parent reply other threads:[~2019-06-20 20:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-14 8:36 Young Xiao
2019-06-14 9:47 ` Saurav Kashyap
2019-06-20 20:50 ` Martin K. Petersen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=yq1v9x0q8uq.fsf@oracle.com \
--to=martin.petersen@oracle.com \
--cc=92siuyang@gmail.com \
--cc=QLogic-Storage-Upstream@qlogic.com \
--cc=jejb@linux.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®