Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp3733036rwr; Sat, 22 Apr 2023 10:31:41 -0700 (PDT) X-Google-Smtp-Source: AKy350by+KOP0uiMmZRPlOlRnxRNvZhHUjj1tyuJA/piEbySe0bRcoCV0ZOvy1oOylx6A++7JWTl X-Received: by 2002:a17:902:da88:b0:1a2:175a:6153 with SMTP id j8-20020a170902da8800b001a2175a6153mr11122927plx.1.1682184700902; Sat, 22 Apr 2023 10:31:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682184700; cv=none; d=google.com; s=arc-20160816; b=dMQg8lC9HzmS4q1h4OpbEL4L9GJpGWrOf8WZXH4tFXPFhVmRV+yw1Y2KXtsHaTiaNt NFmAeqKi4W6vuiADdfJOVCCSIHgEYidesrplMMYESyu8tXCshb4aXVnn0P51p7hMZfml Ai5ow8O04Ff81oXrwekkz/Lc0nSXlcF/aRxOAKQ8NNKfC9j2iAu0LYnAwYilCZ1vTgKb WE3GeSBzMmuCpPcwNUMFM/KImmJXYpHG/Gl0Ya2LJPspEV4uRNRDXDZZCJLXRJ/OYL6s NhpnUathxyCSs6tM9ewl2xcmOvH2Iq00ohNqSwGucRGbWxC4UgUqNdRg1Z1TMLFwOi6J xiZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :subject:cc:to:from:date; bh=hhVUn4J6OO0wa3bm0S2/RxqNaovZFOQJGkxNhfszCnQ=; b=YV2laZXlMKWtC0uk9fHhohKsjVbM+cjWK5/CH2ajdnBE+OXRIHoCBJcreWOIgbhtHt a+ULE2Go5IEI+N0ogF+xx4dhrkcYnrEWNfjGFi44vYnAqsPjtXikE2VTM9YQ2PkAu5d6 ao/39KH+BXnCu53CusN/lEliqA5Vfw3rs0u5Sf0x5ltco7Clc5DRtnT9h+tVqq6jmDOC IoV9TPQlRtYP5irsI04L7u5/HFZPSTrGk+3VansuULe6KNy8yp5KkR5o9UrXA6x+Qupx F1267cLnkp29Ex875arFtGxGhf0kfDgTuzULe4ofTeURF+VH6fF9FePBVMI36i+splcD eW8A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l12-20020a170903120c00b001a1b776489dsi7757441plh.300.2023.04.22.10.31.29; Sat, 22 Apr 2023 10:31:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229806AbjDVR3e (ORCPT + 99 others); Sat, 22 Apr 2023 13:29:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39350 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229556AbjDVR3d (ORCPT ); Sat, 22 Apr 2023 13:29:33 -0400 Received: from bues.ch (bues.ch [IPv6:2a01:138:9005::1:4]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 842E01BF7; Sat, 22 Apr 2023 10:29:30 -0700 (PDT) Received: by bues.ch with esmtpsa (Exim 4.94.2) (envelope-from ) id 1pqH2e-0008h1-Tl; Sat, 22 Apr 2023 19:28:54 +0200 Date: Sat, 22 Apr 2023 19:28:20 +0200 From: Michael =?UTF-8?B?QsO8c2No?= To: Larry Finger Cc: Nikita Zhandarovich , Kalle Valo , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , "John W. Linville" , linux-wireless@vger.kernel.org, b43-dev@lists.infradead.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, lvc-project@linuxtesting.org, Natalia Petrova Subject: Re: [PATCH v2] b43legacy: Add checking for null for ssb_get_devtypedata(dev) Message-ID: <20230422192820.59e8e423@barney> In-Reply-To: <95cff855-cb12-cf66-888f-b296a712d37d@lwfinger.net> References: <20230418142918.70510-1-n.zhandarovich@fintech.ru> <95cff855-cb12-cf66-888f-b296a712d37d@lwfinger.net> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.37; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/2UmYtPuo=8I_Omt_ytOLG9A"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Sig_/2UmYtPuo=8I_Omt_ytOLG9A Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Fri, 21 Apr 2023 17:14:18 -0500 Larry Finger wrote: > > (err) goto out; > > wl =3D ssb_get_devtypedata(dev); > > - B43legacy_WARN_ON(!wl); > > + if (!wl) { > > + B43legacy_WARN_ON(!wl); > > + err =3D -ENODEV; > > + goto out; > > + } > > } > > err =3D b43legacy_one_core_attach(dev, wl); > > if (err) =20 >=20 > I do not recall seeing v1. One additional nitpick: The latest > convention would have the subject as "wifi: b43legacy:...". Kalle may > be able to fix this on merging, but it not, a v3 might be required. > Otherwise, the patch is good. >=20 > Reviewed-by: Larry Finger No, it's not good. It's wrong. I already replied to it. wl can never be NULL here and the goto-out path is wrong (if there was a chance for it to trigger). Please drop this patch, Kalle. --=20 Michael B=C3=BCsch https://bues.ch/ --Sig_/2UmYtPuo=8I_Omt_ytOLG9A Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEihRzkKVZOnT2ipsS9TK+HZCNiw4FAmREGTUACgkQ9TK+HZCN iw5QnxAAsP4FHvqBSFyCpRPrOwj512Kwf4RtO4TYNO/FC3zv09UAgjzILHDVJFDD nPmFfNaPsGiVqDUHTIfuPzBYFMdvDsZyibynDU4Fv24YFNXx9YkrytMAZH+Rzh6t 4cID7MG82odxIJJP3ERs7vA0MX1HhD2cKR2BA2g6470gf1M1+EEqGt+xiu8Q09ja rJNpcZB616jmOd3kCxRtSmEVuksPZfVYFFm3Nj77MIUiO/DlIcn2abkFPDMGYpOf 9GGCHTLc0DSTlZ2vTxmmnYQW/Jqhe6DAjjdY2v7OAN8Ma87VCKVWsCdjIKEhUSyf vKY8uxLK9mG5wE8NSD7MqKNALqBewpEcHJy9FyVsxPdq92FpbqfkQh8sWRZFPDC0 kOT+Y9YqFaec9Ffe+jrISqN/lflkspnvCv4DJn2616NoaFa97zVMv43Oz+o5DYps H5TcuwMr/xGlXxHOTRYlxZUFPNMlarkkv6ZoXrhBJncjgZROTRvwjbzgsEeRSO1+ OPUzTIIobbScYn3XNmNz85Ag8uBx/LrXqSW7F+N4dKyEhXs/EGXKjx/PnZIxSDNF s05UhkHRz6N624hRVSEIOS7R4HuZQxIg83usyAkhTT/o58UsHd9sjrK1Tv63m+wE XqbKdiC5cKgaN4Mhoeil2Cz6AZsSizVV4PYsAN7zGuk/iGOhC1Q= =vx0A -----END PGP SIGNATURE----- --Sig_/2UmYtPuo=8I_Omt_ytOLG9A--