Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp727684ybc; Tue, 19 Nov 2019 08:18:59 -0800 (PST) X-Google-Smtp-Source: APXvYqzTjCeG57K8QE+ODd3UWC5nSCsQpJbwEO/2lr3mkldfl7VKY5EmbHZdmnUlmnxF5N2RVkg5 X-Received: by 2002:a17:906:9417:: with SMTP id q23mr36459518ejx.37.1574180339256; Tue, 19 Nov 2019 08:18:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574180339; cv=none; d=google.com; s=arc-20160816; b=0HG2g/KwqMrekhmctbWtHRDm99FrY72Fc39QurVCNme7Jcg0KS0qBokTYbMr26fBNP 2re6o0AXOAhMoB+FyWZHYdrgqhBb+y+T83cJPECRnDR16RKPIhIA2ekFIe0npevjcV8w rwiwko92WvQpJDj4mJZhPfxO/kgGTSQVNFWioAqzFjaMxs8S33rL3Cpj6bzRBJ8UqKcq 7rVWEwTkSlZ8P0wdLusB9RdzaWahC0nRQiH7HcQhLlyD6pNRMTb+fHQDbhWyM6KqXjZp DZTe3vc7w79BzKWp2JaCLqh7zMEmPfYEzTIyvRfqxsMN6zImN5E5rVeHStz64puAXUNW dU+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=ZqRLNz3QoP7lC3GoX4dGbpM/0X+BMWIWcZVOVY7dcIU=; b=Ae47EqmpPYTmNeaGtJ9yzXaQqZAyN27FoTu28SemrVG2xC0L3ZOz4zNeFb3oYZZWuW b/C3UojAzb0Dlg1LmZ6L5jzT7CdbBxA3+RbCqtDK8xRFryOEjWkNzwbgzbzMGm2+1LsZ tPHpFpY2JpUADsEfhUSTYvpM3F+lR0QzDZooG2smYzZgdYD2KWPcvy+LRDoPhEDOkaEL WZ37Z++SKlkZNyGcfgLaYZYAuSLvDGHTn82d8ZGZBrqyEbD9Ad4CpoOkMYLKu3P2bUpU dl1Dy7OYBxfgC1XM3sQMspDAZvG0mlKFSbMJYkUqFKHzD8Sq662fGbZ/96bHu0TGaciQ rVvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@toxicpanda-com.20150623.gappssmtp.com header.s=20150623 header.b=EEDZ6kzK; 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 r12si14468814ejx.217.2019.11.19.08.18.34; Tue, 19 Nov 2019 08:18:59 -0800 (PST) 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; dkim=pass header.i=@toxicpanda-com.20150623.gappssmtp.com header.s=20150623 header.b=EEDZ6kzK; 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 S1728464AbfKSQRE (ORCPT + 99 others); Tue, 19 Nov 2019 11:17:04 -0500 Received: from mail-qk1-f175.google.com ([209.85.222.175]:39509 "EHLO mail-qk1-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727509AbfKSQRD (ORCPT ); Tue, 19 Nov 2019 11:17:03 -0500 Received: by mail-qk1-f175.google.com with SMTP id 15so18300480qkh.6 for ; Tue, 19 Nov 2019 08:17:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toxicpanda-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=ZqRLNz3QoP7lC3GoX4dGbpM/0X+BMWIWcZVOVY7dcIU=; b=EEDZ6kzKJxHxR0jYrvurpFG7/VtWy3lmas2bKyDXg0ZIHpu7ZvgPRmxgNIdJ5Trl8o 2i+mkawUu3GG/1fSr9nzBfLa1IwyzlN5vbaTmoKGke3iU9oK6RwfGr4wkUK2CcZ4XRS4 T8m6NFVGWYmHUhSii2nMalguQ49rr8DmBIkT46n//mCXFsljMqZhQqpPqcvsVRXp5ZR8 j3Yz/HgyL4AScR2b/nyEyR8AHVMVBqeRo3TLRgbr+kXQezQzjhiWi7JePw3i6rj+I7Kk fXVbFKoYoCJ9W+vXBQuspHHAYavKVmMHwyEXIdioL2V4cpezvpipuNysIJNNSxebF/rO m8VA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=ZqRLNz3QoP7lC3GoX4dGbpM/0X+BMWIWcZVOVY7dcIU=; b=Zyctblvd5GYZOJkPFcZ/FROjWDpEum6O7klpERK4jORFStnZs+58mT54JxSwQSnoHd YbI7EeIdJKPTeQjIU8ftCaNsrT+IqA4G5gTZOXIeU6tJqzIn1pll4clA5roo5qpfK7Eq czkQF9XHp4MfR3WIl8wOd6/mk0eNwXKD7Jf18pVmtmnohr53RVZgee/G9yB9l0sjglr6 huhiZL0dxG7xnQDSuatHNuV3YU4onBi58ODAC1kpPPosB6LC4GVjSIY2icnl9nkVs6F9 KIwPsevdZxQswqGZ+fh55wKGEmaUpX6uKy/57QM2t7f0YbjTtQY0kbIZmZvhANIe7yUl SMYQ== X-Gm-Message-State: APjAAAXyNR2hoxntycbMQp3ULTKwMTEekhSsc5ynkZuuk1SsiuEcNjY6 l7WZn9eXKP0c9H29FAQGvVi9wQ== X-Received: by 2002:a37:a70b:: with SMTP id q11mr30591722qke.350.1574180221163; Tue, 19 Nov 2019 08:17:01 -0800 (PST) Received: from localhost ([2620:10d:c091:480::61cf]) by smtp.gmail.com with ESMTPSA id b3sm9769407qkl.88.2019.11.19.08.16.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Nov 2019 08:17:00 -0800 (PST) Date: Tue, 19 Nov 2019 11:16:58 -0500 From: Josef Bacik To: Jens Axboe Cc: Sun Ke , josef@toxicpanda.com, linux-block@vger.kernel.org, nbd@other.debian.org, linux-kernel@vger.kernel.org, Mike Christie Subject: Re: [v2] nbd:fix memory leak in nbd_get_socket() Message-ID: <20191119161658.mmifoeplc5vsdt64@macbook-pro-91.dhcp.thefacebook.com> References: <1574143751-138680-1-git-send-email-sunke32@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 19, 2019 at 09:13:34AM -0700, Jens Axboe wrote: > On 11/18/19 11:09 PM, Sun Ke wrote: > > Before return NULL,put the sock first. > > > > Cc: stable@vger.kernel.org > > Fixes: cf1b2326b734 ("nbd: verify socket is supported during setup") > > Signed-off-by: Sun Ke > > Please always CC the author of the patch you're fixing. > > Mike, Josef - we probably need to get this upstream ASAP. Yup sorry got distracted, Reviewed-by: Josef Bacik Thanks, Josef