From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Tue, 24 Jan 2017 09:09:06 +0100 From: "hch@lst.de" 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" Subject: Re: [PATCH 15/16] block: split scsi_request out of struct request 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 In-Reply-To: <1485217979.2825.20.camel@sandisk.com> Sender: linux-scsi-owner@vger.kernel.org List-ID: 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?