From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754140AbdGLVSL (ORCPT ); Wed, 12 Jul 2017 17:18:11 -0400 Received: from aserp1040.oracle.com ([141.146.126.69]:23105 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754047AbdGLVSK (ORCPT ); Wed, 12 Jul 2017 17:18:10 -0400 To: Johannes Thumshirn Cc: "Martin K . Petersen" , Linux SCSI Mailinglist , Linux Kernel Mailinglist , Chris Clayton , Douglas Gilbert Subject: Re: [PATCH v2] scsi: sg: fix SG_DXFER_FROM_DEV transfers From: "Martin K. Petersen" Organization: Oracle Corporation References: <20170707085638.18939-1-jthumshirn@suse.de> Date: Wed, 12 Jul 2017 17:17:59 -0400 In-Reply-To: <20170707085638.18939-1-jthumshirn@suse.de> (Johannes Thumshirn's message of "Fri, 7 Jul 2017 10:56:38 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Source-IP: userv0022.oracle.com [156.151.31.74] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Johannes, > 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") Applied to 4.13/scsi-fixes. Thank you! -- Martin K. Petersen Oracle Linux Engineering