From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from verein.lst.de ([213.95.11.211]:55720 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933386AbdHYPfa (ORCPT ); Fri, 25 Aug 2017 11:35:30 -0400 Date: Fri, 25 Aug 2017 17:35:29 +0200 From: Christoph Hellwig To: Bart Van Assche Cc: "Martin K . Petersen" , "James E . J . Bottomley" , linux-scsi@vger.kernel.org, Christoph Hellwig , Hannes Reinecke , Johannes Thumshirn , stable@vger.kernel.org Subject: Re: [PATCH] scsi_transport_sas: Fix error handling in sas_smp_request() Message-ID: <20170825153529.GB18440@lst.de> References: <20170823182558.15370-1-bart.vanassche@wdc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170823182558.15370-1-bart.vanassche@wdc.com> Sender: stable-owner@vger.kernel.org List-ID: Hi Bart, I looked a bit more at the history of this, and it seems like the only issue with commit 17d5363b83f8 here is using the blk_status_t type for the ret variable. Even before that the negative error code leaked out to userspace. We can try to just turn that back into an int, but I'll also send out an RFC patch to use bsg-lib for the SAS transport in a bit.