From mboxrd@z Thu Jan 1 00:00:00 1970 From: James Bottomley Date: Tue, 02 Dec 2014 14:50:48 +0000 Subject: Re: [patch v2] scsi: set fmt to NULL scsi_extd_sense_format() by default Message-Id: <1417531848.2424.0.camel@HansenPartnership.com> List-Id: References: <20141202110729.GA17562@mwanda> In-Reply-To: <20141202110729.GA17562@mwanda> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Dan Carpenter Cc: linux-scsi@vger.kernel.org, kernel-janitors@vger.kernel.org On Tue, 2014-12-02 at 14:07 +0300, Dan Carpenter wrote: > One of the two callers passes an unintialized pointer as "fmt" and > expects it to be set to NULL if there is no format string. Let's make > this function work as expected. > > Fixes: d811b848ebb7 ('scsi: use sdev as argument for sense code printing') > Signed-off-by: Dan Carpenter > --- > v2: Change scsi_extd_sense_format() instead of the caller Reviewed-by: James Bottomley James