Received: by 2002:ab2:3b09:0:b0:1ed:14ea:9113 with SMTP id b9csp75049lqc; Thu, 29 Feb 2024 10:40:41 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVwqN6t6py9Yulb0ctnlKM0doyzbzoEQRlbPdLt4JNYv9N0MUnzUFCo/okDPi2/11ekHPbCnNg+g5+pPYjHkAIw5LxamD9KujqEKlU64Q== X-Google-Smtp-Source: AGHT+IFr+L82Zmv3uhOt2WyO6EMF82SVpmXTiA+d9VdCkzUXFYE6WPikKO2oQ27cd8Mc97gnPXur X-Received: by 2002:a05:6a20:1512:b0:19e:a448:71cf with SMTP id n18-20020a056a20151200b0019ea44871cfmr2536883pzi.24.1709232041206; Thu, 29 Feb 2024 10:40:41 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709232041; cv=pass; d=google.com; s=arc-20160816; b=C6OXTzqQ2Nj83GmJ/KWZUDelFcL/2Uz3Kqhou6d4Ff9lp+VgjmC8EWsDoJZ0YbWZWD jP48LpRCFd5ssg8QUa8mD/COwDAO4YpJPpwvZ+9ofCFmTYl09MdH9IfG9x2eKzEtheZZ PpIsxS/svmOttogkIt8fCxHe0TTkgHqzje8Ybv9JkM6+ln1AGQoSqGEFDD7ep4mvTaqq y+p5zy13dnmrodUQtnxr63N1x/wvgUYtP1NPI4w0uP4nLoKsUOJpcGWfpHHKuszLg9Y9 41lQldX7SP+r4mZNS/ww0tFniYhJAt7rWOJUbzPk3MiE6sxJu4JKq/zFUTdN6RF5mgMU bMUQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:in-reply-to:message-id:subject:cc:to:from:date; bh=P8A+qGXW4wlR8y0n2m/dNuvjmVtbv2NvlTJxFvnSg2I=; fh=MELBnVzjLnGtsiwzYqClSCOrYc28LFAGMIadfW3MIlY=; b=IMp3YWFMQqdrSLBmnEOzKTTH4haQY4R5TBzUX9w9fTlHXBStUghO3TBZzJl8r3bmyk yyhQwt6vctpPT1OT+eoLPB/2vGndyC+N1XRKqmCe4flBaGkWe/S/8o/8E1oMWiwkW/ob OpwedHYLG2JisaqIyuqKwcbItqgeFo5PulbWx2AQ+e3aH3j9AidTPfi2xie72OoK9Ivg sUbppperymnpqjWpK515o7ipfA79efcYcYUIvy5nfn/bqD6F9S+cZgzKAiBdHJ5Ag5mJ ar4X2EpKG/ZxrcgWyt0VPGa2ikmPDtGXl7XdTRX5vJAorD6lk5KSd8T8KRNdBO7gysnF Y2hA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=bues.ch); spf=pass (google.com: domain of linux-wireless+bounces-4261-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-4261-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id e62-20020a636941000000b005dcbbecab93si1825793pgc.401.2024.02.29.10.40.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 10:40:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-4261-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=bues.ch); spf=pass (google.com: domain of linux-wireless+bounces-4261-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-4261-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id D640728897B for ; Thu, 29 Feb 2024 18:40:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3E41F7D081; Thu, 29 Feb 2024 18:40:33 +0000 (UTC) X-Original-To: linux-wireless@vger.kernel.org Received: from bues.ch (bues.ch [80.190.117.144]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6CF5A160629; Thu, 29 Feb 2024 18:40:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=80.190.117.144 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709232033; cv=none; b=lxUzGeLqQUIySs6IDnd4EChgPCKbZ2ViOsS93dVX1Snvu7rtYmzHtmkAyJHPXzY5872noTTccxmxADWZulnZLvRaR108R7/AhNzg439tjjUcRvPCx8ZbdJ5AJ0yfnwyK29cvg8JukIX1JedC7dFuLGLCn4JGgjOQgOgSm588M0E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709232033; c=relaxed/simple; bh=UW+TdciKB5gSR3r9g/ate3m4F5PvqE5YslCXW8lrDB0=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=NzqqzIREYIgV9z4AqVXaG2RJsHcYtT3gbQCNcFLXCU6L9V4OZScUr82D8CYpn8YqvbZcfPcUEAGjH0X6RmQ0mkKLwZxQjkQOG3IE1URZGTK+EbvxXnnQXVbQDUvgz1nbdgitJBXY0Gn6tzi9urdGJQu9EmSGmOT9AGBi3Nnsnlw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bues.ch; spf=pass smtp.mailfrom=bues.ch; arc=none smtp.client-ip=80.190.117.144 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bues.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bues.ch Received: by bues.ch with esmtpsa (Exim 4.96) (envelope-from ) id 1rfkqo-000F5s-3B; Thu, 29 Feb 2024 19:09:46 +0100 Date: Thu, 29 Feb 2024 19:08:54 +0100 From: Michael =?UTF-8?B?QsO8c2No?= To: Rand Deeb Cc: linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, deeb.rand@confident.ru, lvc-project@linuxtesting.org, voskresenski.stanislav@confident.ru Subject: Re: [PATCH] ssb: Fix potential NULL pointer dereference in ssb_device_uevent Message-ID: <20240229190854.3717772c@barney> In-Reply-To: <20240229093756.129324-1-rand.sec96@gmail.com> References: <20240229093756.129324-1-rand.sec96@gmail.com> X-Mailer: Claws Mail 4.2.0 (GTK 3.24.41; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/ob.XXZ=76OiP5u+w1/NKFuc"; protocol="application/pgp-signature"; micalg=pgp-sha512 --Sig_/ob.XXZ=76OiP5u+w1/NKFuc Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Thu, 29 Feb 2024 12:37:56 +0300 Rand Deeb wrote: > static int ssb_device_uevent(struct device *dev, struct kobj_uevent_env = *env) > { > - struct ssb_device *ssb_dev =3D dev_to_ssb_dev(dev); > + struct ssb_device *ssb_dev; > =20 > if (!dev) > return -ENODEV; > =20 > + ssb_dev =3D dev_to_ssb_dev(dev); > + > return add_uevent_var(env, > "MODALIAS=3Dssb:v%04Xid%04Xrev%02X", > ssb_dev->id.vendor, ssb_dev->id.coreid, Good catch. Acked-by: Michael B=C3=BCsch --=20 Michael B=C3=BCsch https://bues.ch/ --Sig_/ob.XXZ=76OiP5u+w1/NKFuc Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEihRzkKVZOnT2ipsS9TK+HZCNiw4FAmXgyDcACgkQ9TK+HZCN iw6qKg//T18rCQhWWnilcYj4srdCKlazbrCftkkAQSu680rHZXaMTlgLWeNKxBve TUf2P0v7S2d6BDpoNiyixNkYiJX0VyhXPQRUvmqFMhP+cy9zuWMrvLLBxgGRzuh/ XeKw9Gnwhp+KQNsuE9MlH1JC8T+tVQxvpBvyxNdHGL3UWi9+xRgNnRtRkc2nWTBO 7x4hMpYNmE+NbyIwoj4ps2+wruvzTvAQnaMNtwcyImBKd/J7fE7FPRVqP57+xR+C bftMfFV4xn7rArpU+Pg+8wEryOUIhPJ9ZmO/CLejkjaE2qoy7PP4sZbdcCSeMxak w10uZ1x7veeNspxNEMSKTjuvRcKJgg0x2eFKFhLbTnJg9D60yeDVTK+9S/QVHpXa frndJ8VCxjMq2+bY2sdglOZelAtAh9PQzLgma3HlRvwe6zprWZdmexih06oFV+kW 4vQNus9qhZxCl7Wpxap/OlFwdgINqU/J6VDAsnt0wyMd1kdGXJaZDXeKAfY/a6B8 eM//hyWbJ+axLvtJxbnZOCUffy64yqGLJMYUQi9dfAriyDtIozRP7vGsqEDlhVTP xz4PlzWuoEyzCAF9DBQ3hYxihCgGuOE9bGXg8dG0MPTw8V1XjigKdqPJyWETi43o PJGNkPWysXXCE03+KAmvpz3VNYGBFRy7+YiRUC6bImGqMaszisM= =8bGs -----END PGP SIGNATURE----- --Sig_/ob.XXZ=76OiP5u+w1/NKFuc--