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 9807BC433F5 for ; Tue, 7 Dec 2021 20:26:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Message-Id:Date:To:Cc:From:Subject: References:In-Reply-To:MIME-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=v1d4rKGtuVq5mhlaZN3sVdWFDQN0ljmWtz4skNGAQGY=; b=JS4cKxTzeLfVmU KcCsyJMOFhu1MvawI4olm8UEM4V/3EEs9PuF2TMlSe1d/5T2Es5hfR4QSBXA4JKCpZ5DyGCjv7Ok0 c4KSAkDNBr7jsa7KtDf8VHUpq2vIfalrB0IxU02PCZ9/jEsD7ppPg5WFqgc6FRYGhXxLsGudvHYf0 0eeIGW4z+wd3vqty16QYyoiHAxOrLphu2DLBTzRNt1q8oUW8hMwjFP9xYBZJT4UdymW7ulXgp1e6x 8tnaRINmY8SQ4RnuTxHNL9lpsQ+Cu2jVX2taPmplQtlGJvWEE/4CEk3Ms75oibibXfyGEdLpQAOBV bHt60s/edP+G5BKF8pJg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1muh19-00A1D7-BB; Tue, 07 Dec 2021 20:24:51 +0000 Received: from ams.source.kernel.org ([2604:1380:4601:e00::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1muh15-00A1CZ-Vi for linux-arm-kernel@lists.infradead.org; Tue, 07 Dec 2021 20:24:49 +0000 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 ams.source.kernel.org (Postfix) with ESMTPS id 7C507B81E21; Tue, 7 Dec 2021 20:24:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 22B59C341C3; Tue, 7 Dec 2021 20:24:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1638908685; bh=7Cl2FNgACf9Ukz+HfpcKZiBzCnj/cNz0yyxaXHqeTLE=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=rY9pV41kt/Zmz2h0rFZhrjv17wn3EDDwIHangrwtZjnihT1aYfNZbb31jcWZdgWix 5wNjnOWnWy8XnO1aon9DGvXemdBHsfV4P5sHnBfZx0JIn5bwf7taiz4lNrTe1YzgMm o/b4n2ivp+3vyooIo+k6m6vCLflpitayqKpFLTBQ74t0K0ubCerA6Bn5oIeOjdTvi1 gyRyHpp8IRLFTsIXr57JTLve21lEfgAw3Xaw3vM/tVeh+07Ev6pQQfCD+9TWUW/TIu pSmDY5afz60zonOo3BkG9Z8HZAlzx5vG1xhqTW5qf/Uy/3BVC1DUJh0jIatFUsTxdo RIpE0r5h3KvEQ== MIME-Version: 1.0 In-Reply-To: <20211117072604.GC5237@kili> References: <20211117072604.GC5237@kili> Subject: Re: [PATCH] clk: versatile: clk-icst: use after free on error path From: Stephen Boyd Cc: Michael Turquette , linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, kernel-janitors@vger.kernel.org To: Dan Carpenter , Linus Walleij , Rob Herring Date: Tue, 07 Dec 2021 12:24:43 -0800 User-Agent: alot/0.9.1 Message-Id: <20211207202445.22B59C341C3@smtp.kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211207_122448_184465_D41CB96D X-CRM114-Status: UNSURE ( 8.64 ) X-CRM114-Notice: Please train this message. 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Quoting Dan Carpenter (2021-11-16 23:26:05) > This frees "name" and then tries to display in as part of the error > message on the next line. Swap the order. > > Fixes: 1b2189f3aa50 ("clk: versatile: clk-icst: Ensure clock names are unique") > Signed-off-by: Dan Carpenter > --- Applied to clk-next _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel