Received: by 10.192.165.148 with SMTP id m20csp795577imm; Fri, 27 Apr 2018 07:39:00 -0700 (PDT) X-Google-Smtp-Source: AB8JxZo7yUmhneeDt3kBLoDyXT8eiS/m0X/2847vME1B++uH7eE4bZCFWxMxQQTSm1K+mQxnPOWW X-Received: by 10.98.202.74 with SMTP id n71mr2452744pfg.149.1524839940180; Fri, 27 Apr 2018 07:39:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524839940; cv=none; d=google.com; s=arc-20160816; b=YL78UWjq/77YcCfvdiSPYYZUjUE1y/V3y6HpMbSL7C4Ht+mLHd48dEPQUQlvI+1YMS uJ7C256/4s0LvaWW2KWyztOnAFsk2E5sd7FHDB2oUrhhbLpY6mFc8ENKeFrD7xgkcZRP WcnZu+dGhT8gluvbtlDQq5HF6bUtg3d9zyx5oOZ6y46H0bM8CeRFcUXF/8K9U8sBaqEJ VN51wzW7n/GEDqv77tdUDaoXZKbTqxl6ET90u6wOQS47ldSU4HLvv6oPpcV5UrNeY0uO A2uDI4CX1OGI3Cj39QuySQg8iykGJT/GcMqCO786q/+fVoa4Gu3swMgzIrHCH53fiyuP SOFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from:dmarc-filter :arc-authentication-results; bh=YbktUZ0HnzMEZt4p8H8knHlKM5WYBgr0r1yAv4O9/eM=; b=l7vn5T05H1XCi0mpmiWRmVYE591hlFda7vgbDCriMEp/wnfJeoh4r0IkwUSn3W82co vSQj0+GWAP4T/v0r7KatV7TLwm/akOqJ1J9sB4eU5mlveyzbUe6WVtvQT1SXSNXxtnM1 5XmHE+XSB3RiAX+zP8QILMpL+h4fWZR/hdc/9htJY7ikVfwn3LIEPdVQ4AqwhI3yCwou MSGMKpcWDTXdl4JJ5NK6XiTXKjN0AAnQim5IAELG5FF3xyk19ZgKLph24ApBzJ6AmRcT BWBgz7GJiiS1Wqgy22UAk43b1JXI4zSL9Qpbod99oDZZRnlr6sLi2U0/iK+JI6B9pZoH cTBw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s16-v6si1312842plp.487.2018.04.27.07.38.45; Fri, 27 Apr 2018 07:39:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934695AbeD0OJf (ORCPT + 99 others); Fri, 27 Apr 2018 10:09:35 -0400 Received: from mail.kernel.org ([198.145.29.99]:54846 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934654AbeD0OJa (ORCPT ); Fri, 27 Apr 2018 10:09:30 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0750821864; Fri, 27 Apr 2018 14:09:29 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0750821864 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linuxfoundation.org Authentication-Results: mail.kernel.org; spf=fail smtp.mailfrom=gregkh@linuxfoundation.org From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Laurent Vivier , Jens Axboe , Stan Johnson , Finn Thain , Geert Uytterhoeven Subject: [PATCH 4.14 71/80] block/swim: Remove extra put_disk() call from error path Date: Fri, 27 Apr 2018 15:59:04 +0200 Message-Id: <20180427135736.573014307@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180427135732.928644313@linuxfoundation.org> References: <20180427135732.928644313@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Finn Thain commit c1d6207cc0eef2a7f8551f9c7420d8776268f6e1 upstream. Cc: Laurent Vivier Cc: Jens Axboe Cc: stable@vger.kernel.org # v4.14+ Fixes: 103db8b2dfa5 ("[PATCH] swim: stop sharing request queue across multiple gendisks") Tested-by: Stan Johnson Signed-off-by: Finn Thain Acked-by: Laurent Vivier Reviewed-by: Geert Uytterhoeven Signed-off-by: Jens Axboe Signed-off-by: Greg Kroah-Hartman --- drivers/block/swim.c | 1 - 1 file changed, 1 deletion(-) --- a/drivers/block/swim.c +++ b/drivers/block/swim.c @@ -858,7 +858,6 @@ static int swim_floppy_init(struct swim_ &swd->lock); if (!swd->unit[drive].disk->queue) { err = -ENOMEM; - put_disk(swd->unit[drive].disk); goto exit_put_disks; } blk_queue_bounce_limit(swd->unit[drive].disk->queue,