Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3296151pxk; Tue, 15 Sep 2020 15:43:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyzLBjPVOFbqhVJ+e/pQGKZouBSsdvlJZqdERdN7L4bNAG3dZ43GMJdiJP29gmDlA3mWo0u X-Received: by 2002:a50:dec9:: with SMTP id d9mr24928730edl.145.1600209831687; Tue, 15 Sep 2020 15:43:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600209831; cv=none; d=google.com; s=arc-20160816; b=w+e8hQJPAst9axe0U5FalURUH3s7e9b9CrBNyF0nhkNoQTE89z75dssCDOVoay6B2f xLQh3i9iz4TMGaQysZpJZ6dLysaP1xtHI0HZHQoEnXB0u+N9ZT1oglSAavoZz0rg71vf q3gybqG25KrGF0w7Hn7YRdfW4AItoj/kvRMvoih6wnuN6odHY/l4MpeLg+xsoqQOUOOD PlCnmcAOfaoslMZcMpoK5GuE68r3ANZzptd8C4sLV7Utg1OSX0sJaOga0QuSZk+lN6CI lkhPPxG9IRrib9rTzbCNrANGVXT5Ce1u9mAeZkktlObdf33xn0jnC/napefBjcvoDRWN cC+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :date:cc:to:from:subject:message-id:dkim-signature:dkim-signature; bh=hWvuIS8aXsMlbLqUINIaSQ7xONrHyLUaUMvnUgyAem4=; b=ogbu7ATjaYwsQLt46JL9uZT/TgyvFcqqzfe3EJUndx0Y0g7GClKWu+OYw3xsiosbo9 XaR7m9kzWbzhgEt49mnpuZzYOASrV9AGeET9o4kLC3zvcbheQwngfLkonrhkONHxhb82 hQGycVFoTloKVdU6MnDyQF7t1aIbSc77X3PfiI91algj+BrDjetrmxidGrlXWb8Kdc/r SUz/IX3B3bZIiHCrKhDVt9iUVp3GI22uH3Zlq6p6/DHAejLAPKCLMME9xQ6KMfU9kGov T5D4ZyxiDHFlFck3C0TC1lpvjNQMOQIV+wZVOqtcoCoQ4CuUHHfTe3noCHhcE8VSatZX bsyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@hansenpartnership.com header.s=20151216 header.b=dQKM7Xsw; dkim=fail header.i=@hansenpartnership.com header.s=20151216 header.b=dQKM7Xsw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=hansenpartnership.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qq11si10530416ejb.445.2020.09.15.15.43.29; Tue, 15 Sep 2020 15:43:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@hansenpartnership.com header.s=20151216 header.b=dQKM7Xsw; dkim=fail header.i=@hansenpartnership.com header.s=20151216 header.b=dQKM7Xsw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=hansenpartnership.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727600AbgIOWmx (ORCPT + 99 others); Tue, 15 Sep 2020 18:42:53 -0400 Received: from bedivere.hansenpartnership.com ([66.63.167.143]:42010 "EHLO bedivere.hansenpartnership.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727925AbgIOWmj (ORCPT ); Tue, 15 Sep 2020 18:42:39 -0400 Received: from localhost (localhost [127.0.0.1]) by bedivere.hansenpartnership.com (Postfix) with ESMTP id A4B758EE188; Tue, 15 Sep 2020 15:42:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=hansenpartnership.com; s=20151216; t=1600209755; bh=VEHO4Ug0kD8bPGj3t70lHdvhQIsfuBMa/2qcEUNGuho=; h=Subject:From:To:Cc:Date:From; b=dQKM7Xsw/Ncz9A1FlYdvJIr8nJ0BrSr39xrXUPxqASLoWTj0i2YEpoE6t+XMBFCHU 1T+CBMAoyh0RXrw52xdS4CXumb9Q33hBSC8DPjBw0nyWWpDFQbFBgnh1zRnyG2sj/2 mtMUV2C7LoIFGp8izh4TE4LTpifkFKozNB6AVthY= Received: from bedivere.hansenpartnership.com ([127.0.0.1]) by localhost (bedivere.hansenpartnership.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Z0HsipziwS27; Tue, 15 Sep 2020 15:42:35 -0700 (PDT) Received: from [153.66.254.174] (c-73-35-198-56.hsd1.wa.comcast.net [73.35.198.56]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by bedivere.hansenpartnership.com (Postfix) with ESMTPSA id 3F5AD8EE107; Tue, 15 Sep 2020 15:42:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=hansenpartnership.com; s=20151216; t=1600209755; bh=VEHO4Ug0kD8bPGj3t70lHdvhQIsfuBMa/2qcEUNGuho=; h=Subject:From:To:Cc:Date:From; b=dQKM7Xsw/Ncz9A1FlYdvJIr8nJ0BrSr39xrXUPxqASLoWTj0i2YEpoE6t+XMBFCHU 1T+CBMAoyh0RXrw52xdS4CXumb9Q33hBSC8DPjBw0nyWWpDFQbFBgnh1zRnyG2sj/2 mtMUV2C7LoIFGp8izh4TE4LTpifkFKozNB6AVthY= Message-ID: <1600209754.5092.24.camel@HansenPartnership.com> Subject: [GIT PULL] SCSI fixes for 5.9-rc5 From: James Bottomley To: Andrew Morton , Linus Torvalds Cc: linux-scsi , linux-kernel Date: Tue, 15 Sep 2020 15:42:34 -0700 Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.26.6 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Just one fix in libsas for a resource leak in an error path. The patch is available here: git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi.git scsi-fixes The short changelog is: Dan Carpenter (1): scsi: libsas: Fix error path in sas_notify_lldd_dev_found() And the diffstat: drivers/scsi/libsas/sas_discover.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) With full diff below. James --- diff --git a/drivers/scsi/libsas/sas_discover.c b/drivers/scsi/libsas/sas_discover.c index daf951b0b3f5..13ad2b3d314e 100644 --- a/drivers/scsi/libsas/sas_discover.c +++ b/drivers/scsi/libsas/sas_discover.c @@ -182,10 +182,11 @@ int sas_notify_lldd_dev_found(struct domain_device *dev) pr_warn("driver on host %s cannot handle device %016llx, error:%d\n", dev_name(sas_ha->dev), SAS_ADDR(dev->sas_addr), res); + return res; } set_bit(SAS_DEV_FOUND, &dev->state); kref_get(&dev->kref); - return res; + return 0; }