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 0324EC433F5 for ; Wed, 27 Apr 2022 04:55:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1357737AbiD0E6P (ORCPT ); Wed, 27 Apr 2022 00:58:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237234AbiD0E6O (ORCPT ); Wed, 27 Apr 2022 00:58:14 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 330FB2665; Tue, 26 Apr 2022 21:55:03 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 3000260BD6; Wed, 27 Apr 2022 04:55:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6872CC385A9; Wed, 27 Apr 2022 04:55:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1651035302; bh=lb0749tNeujoajvrbWKtsMVUVmfSzSAh3mOQ5OSWbws=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=r7wYa8F18+PZLTDUmJKFzhLYYO74EtPmmL3519tYSUTYar7ruzcYYcSW3ukXFgBRj eP0aKTMAlRWZ+qVsuW85TATNJpZJBLVZ3CNb4Vum8W2xpAgk95jYFmr9BFPjaaQc8L odJZTZuVF4tTUZAFoESZOQNg6Jnyvi2WVwr9MDXg= Date: Wed, 27 Apr 2022 06:54:57 +0200 From: Greg KH To: Wan Jiabing Cc: Hartley Sweeten , Alexander Sverdlin , Russell King , Nikita Shubin , Arnd Bergmann , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH] ep93xx: clock: Fix UAF in mach-ep93xx/clock.c Message-ID: References: <20220427022111.772457-1-wanjiabing@vivo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220427022111.772457-1-wanjiabing@vivo.com> Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org On Wed, Apr 27, 2022 at 10:21:11AM +0800, Wan Jiabing wrote: > Fix following coccicheck errors: > ./arch/arm/mach-ep93xx/clock.c:351:9-12: ERROR: reference preceded by free on line 349 > ./arch/arm/mach-ep93xx/clock.c:458:9-12: ERROR: reference preceded by free on line 456 > > Fix two more potential UAF errors. > > Link: https://lore.kernel.org/all/20220418121212.634259061@linuxfoundation.org/ > Fixes: 9645ccc7bd7a ("ep93xx: clock: convert in-place to COMMON_CLK") > Signed-off-by: Wan Jiabing > --- > arch/arm/mach-ep93xx/clock.c | 8 ++++++-- > 1 file changed, 6 insertions(+), 2 deletions(-) This is not the correct way to submit patches for inclusion in the stable kernel tree. Please read: https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html for how to do this properly.