Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2227629pxa; Mon, 24 Aug 2020 08:33:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwwU5E+oalq7ueRgCN7LjV3fyvlVnGUwg0HnQDii687Zsa2CQWkvcxKWNSkUm8s4gx3hfec X-Received: by 2002:a17:906:5681:: with SMTP id am1mr2820377ejc.337.1598283231950; Mon, 24 Aug 2020 08:33:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598283231; cv=none; d=google.com; s=arc-20160816; b=vybnVLKdA7lxu2SjI0emjXZvguGjlmj1RbR0AxZVYX5y4upqz6nUy7wkUZwirgpv3e Wd1lccyftTiEB+i5dXq+1mL/VM1qGOxawVETMhQ1+rvSLZhbM2qMfUt6aGEzggLJFyDJ nhIvljawtOoQo0isS2MFqRMq5/BfHuY2XsfNi8gpHJRW0QcSU9yjaFpTvm/C+q/cjhoK +ydvjkzXnT9AzBF9skzellyCWeIfsIi1k9QD9E0Cm5wUP5PuA8wIVholKWl6l+Rg02e+ KEHPhr2sisdhNB6DyeMkBvLeI94XYV4HtLQCC4MCROfCi4HjXTzIbuBWm4CZOLWF6v3s 9vDA== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=yfrSztbxyVdrNkvRaWSKyH2m7g61Tuoyn5zH5uHd9ms=; b=inDtAYRfUpdNQtCInSZ3bYJfDbqVy8gcmZlmuPGV7iJCHKJzfDUcpipYjGd81o8Jmg c8QTHpMTVpzjqrfdtjfah5HQ+2xcbG0OidsLgKlXuMWd7xJg+69ZK9fTSVuSjb0RD4rW 5dol7SsCmGTwESS8yG74NLBzJrGGSwv6qjccOJ9ynTrdog039FNwMRSQJ/+3EIzIGmvY rmxZfCZklWNp1pbV1UOYz9jO17Pn/5upEMvPS9bqSvO3wlqkm+PdYBYSaQB1O/AaTBu0 Y87os+gD/UHQ6yJo1IcibxWvV0sBI9ajpAqBat3k8P/sfmpkHVSBgdJIetUL23eCXR8J QoZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=UIMUTWo0; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z1si5647613ejd.673.2020.08.24.08.33.29; Mon, 24 Aug 2020 08:33: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=pass header.i=@gmail.com header.s=20161025 header.b=UIMUTWo0; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727772AbgHXPcw (ORCPT + 99 others); Mon, 24 Aug 2020 11:32:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726967AbgHXPbS (ORCPT ); Mon, 24 Aug 2020 11:31:18 -0400 Received: from mail-pl1-x644.google.com (mail-pl1-x644.google.com [IPv6:2607:f8b0:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 816EAC061755; Mon, 24 Aug 2020 08:31:16 -0700 (PDT) Received: by mail-pl1-x644.google.com with SMTP id h2so4406651plr.0; Mon, 24 Aug 2020 08:31:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=yfrSztbxyVdrNkvRaWSKyH2m7g61Tuoyn5zH5uHd9ms=; b=UIMUTWo0aS/9WpBY0/Rgjj0FyKbsqnIHwrU2InueSQVvJLzR3llEIhviAxPpttma8L nfqV4+dyId2sZUfB1BiS01o0hEpnxTUGg0o9E/p2GOMVHaxUB832Xsl17w7/3EvJg2cu IJ1CkUbxuKNKD4fyMc+UVEE8hE+Znuahni2rZ2nnxnrLo/Y5Tpx8mKLrD83kUFntC0LY urHiVMfpUsBCuZFULaPL81ZrdsuKIk4ByelrIClMTyZFWWioi/iMlCHhvG69c9PdzoV2 BR/OzONhPkbAV2f8qk8thXcuowm1rCh6V3UUBvPyWnm8doRCQOxeMRIUk7UAAjl6MIvx CqFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=yfrSztbxyVdrNkvRaWSKyH2m7g61Tuoyn5zH5uHd9ms=; b=VEWJ9mQa/fkroK/s4Y2gLQsg0BkjcqsUbfM9eYO9BzAZ8AQauJhzYnA2gn4T3PLrtY /KcfCM0NwbTpf3cMI7ZFFlTHJ+8eiyumLQjQn7t9Pu0f0NOUBAvCkOsc5+HrTP7vzvVx xeGv8MLt3OrjHIo0EHvb+DjRiunOjpwcN4wh9tt6fcMPFQhgrShdYE2y1f6+7FemHaaA QivC3Saux/55Cpwdp5AU862ijPumbJmYtj8Oz0+XxsqFOJ2TFoZ4UhI0zH8vN3aTHTz5 c5Mgv2umRMnBqbX+4pcQcpuhwo3kUCKoj9F8npfF4Ho14XDTdq1ST7yjtLBclgL0p3Ya 1FqQ== X-Gm-Message-State: AOAM533/eDVxtYwrosSe1szM4b04zM+EpgomKvi5DSHweoytye+jeg05 L5UWLOmXKO1m9t8RQbZ5321Xf9xPzkw= X-Received: by 2002:a17:90b:b18:: with SMTP id bf24mr4697310pjb.223.1598283075175; Mon, 24 Aug 2020 08:31:15 -0700 (PDT) Received: from [192.168.1.3] (ip68-111-84-250.oc.oc.cox.net. [68.111.84.250]) by smtp.gmail.com with ESMTPSA id x127sm12343586pfd.86.2020.08.24.08.31.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 24 Aug 2020 08:31:14 -0700 (PDT) Subject: Re: [PATCH] net: systemport: Fix memleak in bcm_sysport_probe To: Dinghao Liu , kjlu@umn.edu Cc: "David S. Miller" , Jakub Kicinski , bcm-kernel-feedback-list@broadcom.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <20200824055831.26745-1-dinghao.liu@zju.edu.cn> From: Florian Fainelli Message-ID: Date: Mon, 24 Aug 2020 08:31:13 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0 Thunderbird/78.1.1 MIME-Version: 1.0 In-Reply-To: <20200824055831.26745-1-dinghao.liu@zju.edu.cn> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/23/2020 10:58 PM, Dinghao Liu wrote: > When devm_kcalloc() fails, dev should be freed just > like what we've done in the subsequent error paths. > > Fixes: 7b78be48a8eb6 ("net: systemport: Dynamically allocate number of TX rings") > Signed-off-by: Dinghao Liu Acked-by: Florian Fainelli This has already been applied, but this is good. -- Florian