From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 29554C4332F for ; Tue, 12 Dec 2023 15:35:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376980AbjLLPff (ORCPT ); Tue, 12 Dec 2023 10:35:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44500 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377002AbjLLPfc (ORCPT ); Tue, 12 Dec 2023 10:35:32 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 640B1EB for ; Tue, 12 Dec 2023 07:35:39 -0800 (PST) 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" 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) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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