Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932582AbbFSUmd (ORCPT ); Fri, 19 Jun 2015 16:42:33 -0400 Received: from userp1040.oracle.com ([156.151.31.81]:20191 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932369AbbFSUlx (ORCPT ); Fri, 19 Jun 2015 16:41:53 -0400 To: Sreekanth Reddy Cc: jejb@kernel.org, hch@infradead.org, martin.petersen@oracle.com, linux-scsi@vger.kernel.org, JBottomley@Parallels.com, Sathya.Prakash@avagotech.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH 15/20] [SCSI] mpt3sas: Return host busy error status to SML when DMA mapping of scatter gather list fails for a SCSI command From: "Martin K. Petersen" Organization: Oracle Corporation References: <1434102153-38581-1-git-send-email-Sreekanth.Reddy@avagotech.com> <1434102153-38581-16-git-send-email-Sreekanth.Reddy@avagotech.com> Date: Fri, 19 Jun 2015 16:40:23 -0400 In-Reply-To: <1434102153-38581-16-git-send-email-Sreekanth.Reddy@avagotech.com> (Sreekanth Reddy's message of "Fri, 12 Jun 2015 15:12:27 +0530") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Source-IP: userv0021.oracle.com [156.151.31.71] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 523 Lines: 14 >>>>> Sreekanth Reddy writes: > scsi_dma_map API will return a negative value (i.e. -ENOMEM) if DMA > mapping of sg lists fails and zero if the sg list in the SCSI cmd is > NULL. But drivers doesn't handled sg list DMA mapping failure case > properly. Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in Please read the FAQ at http://www.tux.org/lkml/