Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753252AbdHPAVk convert rfc822-to-8bit (ORCPT ); Tue, 15 Aug 2017 20:21:40 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:48782 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753207AbdHPAVh (ORCPT ); Tue, 15 Aug 2017 20:21:37 -0400 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: [PATCH] scsi: cxlflash: Fix an error handling path in 'cxlflash_disk_attach()' From: "Matthew R. Ochs" In-Reply-To: <20170815201814.12929-1-christophe.jaillet@wanadoo.fr> Date: Tue, 15 Aug 2017 19:21:31 -0500 Cc: "Manoj N. Kumar" , Uma Krishnan , "James E.J. Bottomley" , "Martin K. Petersen" , linux-scsi , linux-kernel , kernel-janitors@vger.kernel.org Content-Transfer-Encoding: 8BIT References: <20170815201814.12929-1-christophe.jaillet@wanadoo.fr> To: Christophe JAILLET X-Mailer: Apple Mail (2.3273) X-TM-AS-GCONF: 00 x-cbid: 17081600-0020-0000-0000-00000C8B42FE X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00007552; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000221; SDB=6.00902892; UDB=6.00452248; IPR=6.00683107; BA=6.00005534; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00016713; XFM=3.00000015; UTC=2017-08-16 00:21:34 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17081600-0021-0000-0000-00005DB73D1E Message-Id: X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-08-15_16:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1707230000 definitions=main-1708160004 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 360 Lines: 11 > On Aug 15, 2017, at 3:18 PM, Christophe JAILLET wrote: > > 'rc' is known to be 0 at this point. > If 'create_context()' fails, returns -ENOMEM instead of 0 which means > success. > > Signed-off-by: Christophe JAILLET Yep, that's a bug. Acked-by: Matthew R. Ochs