Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp966279ybk; Sun, 10 May 2020 02:09:26 -0700 (PDT) X-Google-Smtp-Source: APiQypIhO6jfPxSLn88D9We8oTx95YvHptulgUcZ0uZtEGt7ufR60Btfjp5yuNC4POQze1t0qE7L X-Received: by 2002:a17:907:364:: with SMTP id rs4mr4675765ejb.311.1589101765976; Sun, 10 May 2020 02:09:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589101765; cv=none; d=google.com; s=arc-20160816; b=Xu+Gzjy/Lcckgg/rA4QbBLn8985oKCjwKpQherwU1vCC2SYfN/CiDx+8zzuMx+P8+z Ent+xoayivAf/DTlg2+lFWcAl+QcmDGB0MjaWSvSXhQLnPOIz9A2CSxzbDekYXhBSagr /U8/mQ0mNnDUdbs5Uz/eiU2ydRmnyHEPpXNo5aHdElo2k+ZbnMPdcYKgefJwtqWU8LXy NlC1ib3eODjjyQdLB01tCMkUzs+wZyTSp/WxZYaiYMf4gq0OTzDtFbmsGnUyM2KiGT00 iMVM46lkqHPu2V3ou4mtmA1mgyYKjlNnbJdtkXhynnE6YHR3WiaDMlAjVrzZXaRU2c8K xv2w== 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:autocrypt:from:references:cc:to:subject:dkim-signature; bh=4GbuQyEtR+gvm8iGl3qLYfG/5nQH9qggKEPBZ9K128Y=; b=nkv1zIVIECES14yZUIGEKP75VtCw13kfZuA9sP6ZRgIW7TDA7MLynwps894S6Tk/4I lmYHrteXJbBlART+Wz15hESD/xyPqT7zKt5DnvE7YMxANmpgQpbHp7fi51MHtMVX6YF4 MJ4XkgRKA5u48/DxAHIotfU3BXoKibrAfoTd5kRQy11rCz33PSdr4pn1Pg4ev0fm113U T7i4Wmro1o2eSh94e7F5MNMlpWERs9r34YC7yEYsXFnHexaeQgLIlcvZRkzMRxujWMyL xvYoZVuM1EVesVuS+0PlI5rpnQ2j07aiVNCWtIrBN1JcwiQmwA6lISfsUXh3XwxX0zV+ P4zQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@web.de header.s=dbaedf251592 header.b=cmijcPAF; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y89si4254294edy.357.2020.05.10.02.09.01; Sun, 10 May 2020 02:09:25 -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=@web.de header.s=dbaedf251592 header.b=cmijcPAF; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728848AbgEJJHn (ORCPT + 99 others); Sun, 10 May 2020 05:07:43 -0400 Received: from mout.web.de ([212.227.17.11]:39841 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725833AbgEJJHm (ORCPT ); Sun, 10 May 2020 05:07:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1589101641; bh=4GbuQyEtR+gvm8iGl3qLYfG/5nQH9qggKEPBZ9K128Y=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=cmijcPAFRSqYvMPIl5DBRk1BMRYK1Xfxa8q+fIv1E8uLv5fehceAthfOZ2cLXGMz4 uD/B9y+XOx5yzjj+6OMf56Kk+vHehh993rBeCsn3mSarvgcwXtiYSFCxOIcSlJza9r 0a3oVvqSi1UC2DG2Ce8KqG0JpmlA0R6bLbNQ8jcQ= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Received: from [192.168.1.2] ([2.244.31.72]) by smtp.web.de (mrweb105 [213.165.67.124]) with ESMTPSA (Nemesis) id 1M9ISr-1jROoA2JWR-006SBF; Sun, 10 May 2020 11:07:21 +0200 Subject: Re: net/sonic: Fix some resource leaks in error handling paths To: Finn Thain , Christophe Jaillet , netdev@vger.kernel.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org, "David S. Miller" , Jakub Kicinski References: <9d279f21-6172-5318-4e29-061277e82157@web.de> From: Markus Elfring Autocrypt: addr=Markus.Elfring@web.de; prefer-encrypt=mutual; keydata= mQINBFg2+xABEADBJW2hoUoFXVFWTeKbqqif8VjszdMkriilx90WB5c0ddWQX14h6w5bT/A8 +v43YoGpDNyhgA0w9CEhuwfZrE91GocMtjLO67TAc2i2nxMc/FJRDI0OemO4VJ9RwID6ltwt mpVJgXGKkNJ1ey+QOXouzlErVvE2fRh+KXXN1Q7fSmTJlAW9XJYHS3BDHb0uRpymRSX3O+E2 lA87C7R8qAigPDZi6Z7UmwIA83ZMKXQ5stA0lhPyYgQcM7fh7V4ZYhnR0I5/qkUoxKpqaYLp YHBczVP+Zx/zHOM0KQphOMbU7X3c1pmMruoe6ti9uZzqZSLsF+NKXFEPBS665tQr66HJvZvY GMDlntZFAZ6xQvCC1r3MGoxEC1tuEa24vPCC9RZ9wk2sY5Csbva0WwYv3WKRZZBv8eIhGMxs rcpeGShRFyZ/0BYO53wZAPV1pEhGLLxd8eLN/nEWjJE0ejakPC1H/mt5F+yQBJAzz9JzbToU 5jKLu0SugNI18MspJut8AiA1M44CIWrNHXvWsQ+nnBKHDHHYZu7MoXlOmB32ndsfPthR3GSv jN7YD4Ad724H8fhRijmC1+RpuSce7w2JLj5cYj4MlccmNb8YUxsE8brY2WkXQYS8Ivse39MX BE66MQN0r5DQ6oqgoJ4gHIVBUv/ZwgcmUNS5gQkNCFA0dWXznQARAQABtCZNYXJrdXMgRW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xJhbzN+r9djSGGN/5IBDfUqSANC8cWzHpWaHmSuU3JSAMB/N+yQjIad2ztTckZY pwT6oxng29LzZspTYUEzMz3wK2jQHw+U66qBFk8whA7B2uAU1QdGyPgahLYSOa4XAEGb6wbI FEE= Message-ID: Date: Sun, 10 May 2020 11:07:18 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:pkmm0tEJ6Uvf0/63tzWKAQ/XltEOWFsBIQyKr8oggmxvVJHcuG2 5KvznoDaCGqwDj7EBKfEJR8bT4nj1lW00bU4e7fFurtEPZVJX4exCi3/X8Z9KeCnqm87lKr HsREoj0CGYBGcObWutfYH6qyieNW2QYcvNxuop0qmQ2gEj86Rdb5FDxFlym51qzKJcSB1gF AqsxFUAZBhAXmMcLtnRvw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:yC4r+r9Jh4Y=:RVTo9dE9EH/dKgRgaPueic jr0cyTb7/bsvywM9WkIGuzEpLb6bez6zp29gmvNH451YBs/YmTUmegk2ySvywJ4ibCuT8h1+O jBM7s3K8Qa+WFGaxM0gTgEbDkPbBeMcaGrElM7Oh7/vvLNkYC2uld90HXD15u96lshh+I6EjR HCiPHeKJfvQ7cxC3DL10SlwEllL09kiUOKF54juvAIlor//k16AOp5s9CUSIPzACBIuzfhHH8 ykRB1bY8ghNUYAj/mCgW6J/bhsJLn8pWiAeo1bwYRsQJSTR4btaRzh1mJ9RgDdwFDH6tbxR+Z nckn2I4/aN26pRcsiqkQQJtAYRQcMGsZr5PXRKMS6WstnzGEA4SnpzLrcVGTtBwkRWVLPDVEx wv2lY0hrU+NZWQC6cxw17rp8aQX3jSTSvS1Iniv051Jf0qgj88XPmUAzt2urH9QE/IjxWUSX5 odymtuNCRnT990rEzNczGyCHxwWJKZZYEVUrOB2tM+xqvU2iC2w75GeOBdwU/2iPseIKbBpvX VqVwD+YG0Hq34g3cmhpXdasBzDDJEg7cXzoMzy5U3yIV80tpSKJiPRhnGJ2WV+OGtfma1R2JL 7Tfyxpz3iaKwNhz9bp+8XhusGPU9sJWyBbv7vkRGv+vnqgFXXA1ZB5hq5lU6/YXRN4I1aGs4I c9LtdqLSo7s898N/b10C43dnOei3un4xcY+Z5K88XGMX2I2/eM22qxnKvfljiblx442SyQLcO wlIB7pXQWzk5NdMLbdbyICDcMHbZ28VUqQSCnpgPpWszp4YAeIdrA8VLO+e6RWBYCdqH9MI/v 1/sjkeTXVZDaXRSl5nJU6WFWBvIoKY4DDDzWD1Q7kYDJLqp08d9qWkx0pYin9GcMNy2SMeFcE yX6LrtlnKPdDKrAGWukTBga0lKHXyX5r19AYYpHn2SYxYGZoeOlfvtjYkQHLmHd1Sk4XJKrmS xnUa4wmo4+ImhwqciKFRuPK7sHii9TPqZYNHaQXZV8Bs5xDWgIw8buuErQFQuu5aSDtmXBHOE N4zupa1AJTSC0LWzioLiGoE4v0zO3vsapqwfVBwA7hPCCtiylAlroQYdc0atH5XrymMQFELgg ouxtxLlcyo1D8j9fYTLlx1W5tSPFguF3/wkOjFvd3MqWfGENeUQChD2pm6Kn/U3FflULk5g7Q czgfeK2h8R9ugZLTwq/3ftEKhhig/k9Gs8+js1g5Usn+ZbC98jl9qEMvBHjS9aXgFZHLV07iv mQNPXU+1VQDZT5GFB Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >> https://lore.kernel.org/lkml/20200427061803.53857-1-christophe.jaillet@= wanadoo.fr/ > > Do you know when these bugs were introduced? I suggest to take another look at a provided tag =E2=80=9CFixes=E2=80=9D. To which commit would you like to refer to for the proposed adjustment of the function =E2=80=9Cmac_sonic_platform_probe=E2=80=9D? > Naming goto labels is just painting another bikeshed. Yes, some > alternatives are preferable but it takes too long to identify them and > finding consensus is unlikely anyway, as it's a matter of taste. Would you find numbered labels unwanted according to a possible interpreta= tion related to =E2=80=9CGW-BASIC=E2=80=9D identifier selection? https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Do= cumentation/process/coding-style.rst?id=3De99332e7b4cda6e60f5b5916cf9943a7= 9dbef902#n460 Can programming preferences evolve into the direction of =E2=80=9Csay what= the goto does=E2=80=9D? Regards, Markus