From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.linuxfoundation.org ([140.211.169.12]:39208 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751340AbdGRHuO (ORCPT ); Tue, 18 Jul 2017 03:50:14 -0400 Date: Tue, 18 Jul 2017 09:50:07 +0200 From: Greg Kroah-Hartman To: Johannes Thumshirn Cc: stable@vger.kernel.org, Douglas Gilbert , "Martin K . Petersen" Subject: Re: [PATCH] scsi: sg: fix SG_DXFER_FROM_DEV transfers Message-ID: <20170718075007.GA12382@kroah.com> References: <20170718074221.7388-1-jthumshirn@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170718074221.7388-1-jthumshirn@suse.de> Sender: stable-owner@vger.kernel.org List-ID: On Tue, Jul 18, 2017 at 09:42:21AM +0200, Johannes Thumshirn wrote: > (commit 68c59fcea1f2c6a54c62aa896cc623c1b5bc9b47 upstream) > > SG_DXFER_FROM_DEV transfers do not necessarily have a dxferp as we set > it to NULL for the old sg_io read/write interface, but must have a > length bigger than 0. This fixes a regression introduced by commit > 28676d869bbb ("scsi: sg: check for valid direction before starting the > request") > > Signed-off-by: Johannes Thumshirn > Fixes: 28676d869bbb ("scsi: sg: check for valid direction before starting the request") > Reported-by: Chris Clayton > Tested-by: Chris Clayton > Cc: Douglas Gilbert > Reviewed-by: Hannes Reinecke > Tested-by: Chris Clayton > Acked-by: Douglas Gilbert > Signed-off-by: Martin K. Petersen > --- > drivers/scsi/sg.c | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) What stable tree(s) do you want this to be applied to? thanks, greg k-h