Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4720881rdb; Tue, 12 Dec 2023 07:35:42 -0800 (PST) X-Google-Smtp-Source: AGHT+IFgCxou6Zfevfqlgoiq+q1VRhAyGHWvLfkCbNBeNm8E+GL3pH5MjqHtrkqNtR8lR2WBEhBM X-Received: by 2002:ad4:5ba5:0:b0:67a:a72d:fbba with SMTP id 5-20020ad45ba5000000b0067aa72dfbbamr10953085qvq.56.1702395342229; Tue, 12 Dec 2023 07:35:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702395342; cv=none; d=google.com; s=arc-20160816; b=s2cGSl7kdBN4IPNFcahhO39CHA3bPM1mUN3Wk6Zy0LD2RjNb4l07lFGms60cOgeLmK paRkVZUOESOZB/j8LZs9HIiVvawoZgMuWGcPaCPgic5aCUvfpH7uWYpECT1h1WYb4tDU QMHH9jQctZloYnFbjeA/iW5oy6fQxXGl9t4s3Ap/5p71Dy2APJcdyzxuGOJ01hQuYo+V knOsfIdLmYFE/xtnwGwH9eRigFF1tvkRovvvthNHJHYdlfR94h6p0GWrkIwCKOYWhdyj GS482TJISryJ8ur74yuobRAgh92lwhqoHMTGeTHzegnyrMwYdbUMoxoXsjj3Yh5mVpSr d/0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=date:message-id:user-agent:cc:to:references:in-reply-to:from :subject:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=XkTfEeNBVDA61QoGkpriNm1pfi/WBAddmKxxA7Xf+T8=; fh=GEvnQdC3nNQREfZqKnhSofbKUcwfw9eRUNZQSq3or38=; b=ObW9jaqe2BGQ0NI4TOUvKyZBhO5KzI6IfcGcx7oY1+lz1Dd0niVZJJmSj3Muik6c1u VA2VdhEZQGFp6urN10pfLBEOIAIT1uZZhRMwpUkuCxWo1HkgmhsIsc/wc0YfPXe+rwYL b+tmzF7vn5IKI6qhYojOeV3x+YNskC1EnATvOerbJ+w+e0HanfcbM7GYxAmEmFB36cvH Js9XEVsapwm4HGGoLpGw0mkNWk3VF/Oy6DZsiw5+ghuMZYREhMOcCRj6MBkUdVW9/k1Q HFzSvvLRG5BkdVQehlRP5Y9iUrVDJXcJUeOLnoRpXcGL6kHyxCW3jGIBUULqQfUKJbfP z3Fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sRTNP8W3; spf=pass (google.com: domain of linux-wireless+bounces-704-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-704-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id dx1-20020a05620a608100b00775907603f0si11030267qkb.470.2023.12.12.07.35.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 07:35:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-704-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sRTNP8W3; spf=pass (google.com: domain of linux-wireless+bounces-704-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-704-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 045D41C2087B for ; Tue, 12 Dec 2023 15:35:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3B64B76DAD; Tue, 12 Dec 2023 15:35:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="sRTNP8W3" X-Original-To: linux-wireless@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 1CFFD3399E for ; Tue, 12 Dec 2023 15:35:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9778AC433C8; Tue, 12 Dec 2023 15:35:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702395338; bh=Uze0pxeBdkOUy3U6m/Mh1/d2tI9SnM/+x1V/99wkX3E=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=sRTNP8W3M8DChOJFfMhLF2+Q9C/ce8wSirbdPGEhroZatcWxA5Z1ofqtZdZykIpQH xjzACOHrkmAAnFZoIWpRaqma0iie7zLY/8l0shx6ONOJqCbS2gVmu1qaNeY8Mf1lkX s+NmZjqH8IE9MA3f3wnN8rc1HN0cKxyYQfZcHO7IO4Zw1UM4c2mQTxynxMGxlPwirj hNCo2UJG6gHqvu1Z071xtKoZzteruv24oYWu67XCIeLSYG7YkE4VswbtCAHDxrr82+ M5mqBriHhDSVoui49dOd2qgNnwkyPlWCzmyIbFJ0poClwQzzKjS2WUPBquq00YontM P50AdTZuPgg3w== Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: wifi: iwlegacy: Add null pointer check to il_leds_init() From: Kalle Valo In-Reply-To: <20231211033019.238149-1-chentao@kylinos.cn> References: <20231211033019.238149-1-chentao@kylinos.cn> To: Kunwu Chan Cc: stf_xl@wp.pl, linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, Kunwu Chan , Kunwu Chan User-Agent: pwcli/0.1.1-git (https://github.com/kvalo/pwcli/) Python/3.11.2 Message-ID: <170239533573.306086.10663897206558625486.kvalo@kernel.org> Date: Tue, 12 Dec 2023 15:35:37 +0000 (UTC) Kunwu Chan wrote: > kasprintf() returns a pointer to dynamically allocated memory > which can be NULL upon failure. > > Cc: Kunwu Chan > Signed-off-by: Kunwu Chan > Acked-by: Stanislaw Gruszka Patch applied to wireless-next.git, thanks. afd549903ea9 wifi: iwlegacy: Add null pointer check to il_leds_init() -- https://patchwork.kernel.org/project/linux-wireless/patch/20231211033019.238149-1-chentao@kylinos.cn/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches