From mboxrd@z Thu Jan 1 00:00:00 1970 From: "hch@lst.de" Subject: Re: [PATCH 15/16] block: split scsi_request out of struct request Date: Tue, 24 Jan 2017 09:09:06 +0100 Message-ID: <20170124080906.GA17018@lst.de> References: <1485185361-29786-1-git-send-email-hch@lst.de> <1485185361-29786-16-git-send-email-hch@lst.de> <1485217979.2825.20.camel@sandisk.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <1485217979.2825.20.camel@sandisk.com> Sender: linux-scsi-owner@vger.kernel.org To: Bart Van Assche Cc: "hch@lst.de" , "axboe@fb.com" , "linux-scsi@vger.kernel.org" , "dm-devel@redhat.com" , "linux-block@vger.kernel.org" , "snitzer@redhat.com" List-Id: dm-devel.ids On Tue, Jan 24, 2017 at 12:33:13AM +0000, Bart Van Assche wrote: > Do we perhaps need a check before the above memcpy() call whether or not > sense == NULL? Yes, probably. I didn't think of the case where the caller wouldn't pass a sense buffer. Just curious, what's the callstack that caused this?