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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4E90FCF6497 for ; Sun, 29 Sep 2024 06:05:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=o9uURvKc1DY6QUuJ6VpJxSC9OU5W8i9mLSnBb157Bto=; b=vnaD50jkYndP472Z+r4KfYdwRk EPDLeO7QNXwsanPRS5bER6KkifNgQfy6aCt31DTOZzvIm0NclsE/K35yVnXsMEucroEQl3U1j2t2x RS0x0URFuGKOQ7tkKexpylNiuhF6NXGyFz49O9f68BKxmYhDruUl0/vzevwo6rZXrGI5Hh9ESq7dQ eeOjioTH/nS0K/oFtUxmSslGdyFqx32blqgZnDt80XEGumxPwBrs3f62zlnqdZWsWmXF3f0uCybpJ LwOnd8AAZiI0nIn6VNJTa9EU9aqIV1Eu79ScI0JGLTirl4VQXFDXgoq2DLcD39qnh2ONKJv6+dGEF zBadgz4g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1sun3E-0000000EEtb-3YOc; Sun, 29 Sep 2024 06:05:00 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1sun1h-0000000EEi0-0JhQ for linux-arm-kernel@lists.infradead.org; Sun, 29 Sep 2024 06:03:26 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id C7B015C0FCD; Sun, 29 Sep 2024 06:03:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1342DC4CEC5; Sun, 29 Sep 2024 06:03:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1727589802; bh=fptU/tf3ymT2YXXOyY8VUkt+TUn1oikY1WV66tiihFo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HjYfikJZgwpNHTcLhh4TWxtZ9dQMZRBqOpej47zST26rNLK2Al4uCt6rlFCci0pQJ tGawINOTN174qMD0pgUHgQOYMld6IHBUJ3B/1vydH0Y9jdkhUe5l0ypXOhVgdhErvo t2lCPVXgufLTCM2NfmtG+3Z4QRQZXaJmpXyO5NtE= Date: Sun, 29 Sep 2024 08:03:19 +0200 From: Greg KH To: Charles Han Cc: rlippert@google.com, joel@jms.id.au, andrew@codeconstruct.com.au, u.kleine-koenig@pengutronix.de, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] soc: aspeed: Add check devm_kasprintf() returned value Message-ID: <2024092910-mobility-waking-758f@gregkh> References: <20240929012503.18636-1-hanchunchao@inspur.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240929012503.18636-1-hanchunchao@inspur.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240928_230325_215977_0911F179 X-CRM114-Status: GOOD ( 17.88 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Sun, Sep 29, 2024 at 09:25:03AM +0800, Charles Han wrote: > devm_kasprintf() can return a NULL pointer on failure in > aspeed_lpc_enable_snoop() but this returned value is not checked. > > Fixes: 3772e5da4454 ("drivers/misc: Aspeed LPC snoop output using misc chardev") > Signed-off-by: Charles Han > --- > drivers/soc/aspeed/aspeed-lpc-snoop.c | 3 +++ > 1 file changed, 3 insertions(+) Hi, This is the friendly patch-bot of Greg Kroah-Hartman. You have sent him a patch that has triggered this response. He used to manually respond to these common problems, but in order to save his sanity (he kept writing the same thing over and over, yet to different people), I was created. Hopefully you will not take offence and will fix the problem in your patch and resubmit it so that it can be accepted into the Linux kernel tree. You are receiving this message because of the following common error(s) as indicated below: - You have marked a patch with a "Fixes:" tag for a commit that is in an older released kernel, yet you do not have a cc: stable line in the signed-off-by area at all, which means that the patch will not be applied to any older kernel releases. To properly fix this, please follow the documented rules in the Documentation/process/stable-kernel-rules.rst file for how to resolve this. If you wish to discuss this problem further, or you have questions about how to resolve this issue, please feel free to respond to this email and Greg will reply once he has dug out from the pending patches received from other developers. thanks, greg k-h's patch email bot