Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1673263ybk; Mon, 11 May 2020 01:22:36 -0700 (PDT) X-Google-Smtp-Source: APiQypItpZOlzHcuDAZwxLD7CWIf2C2Ue9WuGVnkDumHXBHHrkmwZROjQX8Ikji7T2wJlPRLBrfo X-Received: by 2002:a17:906:7c0c:: with SMTP id t12mr12542735ejo.2.1589185356178; Mon, 11 May 2020 01:22:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589185356; cv=none; d=google.com; s=arc-20160816; b=rv3zRBb12VpRJmbCSXBF9MSx8OyVX10ycKBf/TonnjrpzqB7G6rkXxQSynXfMMlyYk eoNWdER8sfBih4e3VdA7wBhkk7gnxI2VBEApW4DM8vpWKHbDLhVXEM5VDPlrIrPHFvy7 hk0JG/KzvMEdGL+EsSLiBZ3ME62g90Ufz7Id/Hx0gu+LWnsfBPM3seTBu7Oql7gRxvCo iuVupud5cuOGAPdLeQXi9Qrk1NmyszwoNr5IskAHsB5QM29JAmE+z5uAm+FilG7SltXY LtZPOEXxZ5e0La/s9K8TVqtr4z5EsN5jcfnYMZUUSpAhtMkNuLLIhqE5EuQ2NeaADQBL jPCQ== 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=3y2G1yVpBuGXndYc8M5o8p9u3GOYWTFXQ4LaWMQUhsA=; b=BmGXrsuWSREfqpS9ST1/PknPGsmILh7xBpf/k9CEOpekN9KXgz+APsMY9SY62qVZUv 28jQ6uoh3N97qHsSVU3a1IUzdeKhj2TYmXvmGjD6xWdgdZFztIsJBZmIzrBoDv8IQnY6 f4VjTnlJE9B3mL4KaKkFqGdSEGw0CGpElN5N4IysakifHODREvG0ph3p3g2wwyojpMgm /cPDWCvmElEcW+UIGv6Ygam7msppDihhwnlFqjBhugR+c5LAtMOUIwd1LxQqLQF0VsYh CaHmlD3YsujFsfTa0/2HHwiqy9fJvITFFWtLZ51+71DeFn02sgktrNHYdiS0qZN14UY2 E2XQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@web.de header.s=dbaedf251592 header.b=q3ORAHPG; 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 q7si5404163eds.494.2020.05.11.01.22.11; Mon, 11 May 2020 01:22:36 -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=q3ORAHPG; 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 S1729090AbgEKIUp (ORCPT + 99 others); Mon, 11 May 2020 04:20:45 -0400 Received: from mout.web.de ([212.227.15.4]:47581 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728556AbgEKIUo (ORCPT ); Mon, 11 May 2020 04:20:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1589185230; bh=3y2G1yVpBuGXndYc8M5o8p9u3GOYWTFXQ4LaWMQUhsA=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=q3ORAHPGCU+CY6EErWtcqvFn6Hz8QaiZChqrH9YHZR61M76ZLcjpmpQlQbN8cQ2gC yofPpIEe9Brum8uDa7jEsEExElY5KSt78p32gMnBJ9Qd+99o3XDLvEe1vVb1f4sARl +IOGMxiBR+uZmrAWPr1GU8fg9v3ikHpS/zUX0MRI= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Received: from [192.168.1.2] ([2.243.185.130]) by smtp.web.de (mrweb005 [213.165.67.108]) with ESMTPSA (Nemesis) id 1MC0PR-1jNunj1s1V-00CTbF; Mon, 11 May 2020 10:20:30 +0200 Subject: Re: net/sonic: Fix some resource leaks in error handling paths To: Finn Thain , netdev@vger.kernel.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org, "David S. Miller" , Jakub Kicinski , Christophe Jaillet 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/ZwgcmUNS5gQkNCFA0dWXznQARAQABtCZNYXJr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1QFc1xxJhbzN+r9djSGGN/5IBDfUqSANC8cWzHpWaHmSuU3JSAMB/N+yQjIad2ztTckZY pwT6oxng29LzZspTYUEzMz3wK2jQHw+U66qBFk8whA7B2uAU1QdGyPgahLYSOa4XAEGb6wbI FEE= Message-ID: <00a5237c-13b4-07b5-99ee-8f63d4276fb4@web.de> Date: Mon, 11 May 2020 10:20:24 +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:FcCYv6jfu0c0+k+4KEQ+qlVkkWGxC0hIDrjL1SvyRQhMaw3FHZo nVGi1rqsJuPlWoirMErPCn75VV1ZSdyGsCKJ6V9lm3s4xRpBMTiIdXfhr4FDR5laMt3eZeq 4gPeC6MXBhQgmA98jsgWXkTDC6asKiXEaqzLD6krs/1/9A9kT/7D6BMMcrD+vLjB6x74OxS ULSvBvfRYj4E0ww3tKtHw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:dGLVDhFnwyw=:kEv6jVJS7ZcOONvXu2SzN4 Thsgdpw3hyFvJIcCxhavm4cXKOZ21CCOSUdi4w9HrKeifB7aI4GsngZAwKU2oJcZ6unqhrBe2 uLaIA+mymtiknM+ILy25dV8pqrs/eHjPdmZ/gEMRXGHkxn7KxcafesjEagj+lkDZCI9LftmUA xg1Gy/wyuOP0Xkduy2U1br0aTlePDlrqJczxyTQTsOLWMJ7aFP16Dc9zNYij0rewjV7CkPox9 AxxOJjZUBX9Ad6nqzO4xJQl4GjlDq2bmUYbZtxiL3fNnOUDB6kXURQt4DR6cMLhrQZFGSqOPI 7gjfit/pyeYqXIptmJlCf9vYU2TVcworYC+WhfpDD1Go0iolSTnEsuC6HysGvdYmNtOa5cVKy M7fycQcewO1yDl8/l+G5FGxTt+OO09PZdvOBRFl5b4FjfP1qOcRkczSVAndGFCfCxLT+MrrBG 1Dci/QHBhgmNiBnhdrnNuuAAdH0tB8c1X1/Pf+Zmj7oHD3biYt/Do02EqHgUO4L1seQ6X21gg p8jE2PC7Gg1n9sao9di5RzSJXv29WoNlDASWNU+/Wx5ByFAP73iZzOmy/IuxW083Bxq5o5r4u 3aogwfYLgFwwtCVJpa2OeqhP0AKWkuhvGYFybu6ukMtV2DohR/+kATqR23iqUEzNs1MJfeAUD +RkfAU4RlCryG9L+Vzz3r6670t9jT2kpJ6br1/TBvGbduGKLVNJNtANwBUFeXl79rdeZHHNz0 2W/KhdC5VNwQAi5RXthG4huKUroFgRuNtQhU/5PFaVsgKVZ45U6YMR6txuj7tASMzbQOTH3vM v+C/Co4ZD0VrZs36Ni2BBXT86hHLQRBY89/uQRjsnQh50WQ/DL+YjmFrjabJvtRkUR4Vc47l7 tXWlB9czvFz230O7/Qv08VxswhwAGp3VP0N2NU4bLFA/LEhWrXHhQ3/7p873X+DMY7fzIlwMk jXHbSVPAVMnPbi7BQojd1NkolIOON0Jw1j/lS/9mFzrCzwey8esal1jlG/IwTv+OavsGJB1lb G/KaQbqgTrmtCGcr7ZoblmvLgV9TNY6RFDS+B7+BUDRkFcKEFV4afZUmiU4Jr/KK2VA7bKqGg e7A/K9HQbE0pgw/+EFqHpyVivvt7q8kYoUhh6cLAZ1BX3ZqMcYTRMFKD3Dl97NIVuC8/AL9e8 eKIcm2wYBz+BtN1RaT7GsKc1PZ9vzdYnq4x9oisGRMYbJmW3wD/On/EhvJMVgbhKXQv/CBNJs Wy2wNJGTLDFBeeXLY Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >> 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? > > That was my question to you. We seem to be talking past each other. I have needed a moment to notice your patch as another constructive respon= se for this code review. [PATCH v2] net/sonic: Fix some resource leaks in error handling paths https://lore.kernel.org/r/3eaa58c16dcf313ff7cb873dcff21659b0ea037d.1589158= 098.git.fthain@telegraphics.com.au/ Regards, Markus