Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp1096513pxy; Thu, 22 Apr 2021 23:25:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzaJswx3ps4RrAbCgt7Wp7Ljd+VJkl9A+6BKE68OLqqmtYF77BkgGwj871cVD5DuXO66zBF X-Received: by 2002:a63:500a:: with SMTP id e10mr2383452pgb.242.1619159149768; Thu, 22 Apr 2021 23:25:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619159149; cv=none; d=google.com; s=arc-20160816; b=UJgFgEfz0hfNlZuMm+A/ixPlHD+3pRtxp8FprEftcr7nkumveDU5/XbrnGQ9+fXtjv 3OELTtOVRXBZg5TmGv8RFlmNmhJRKtt6CMW1OPnJxE9b4iIzfCkOhyMSYZ1xrsVcYKY0 WMA0I7d2A6wsPG/UBF3m067godmUwdEW8ea4N5MB1odxATteqgzy1MQJLcq3cbCe+rTR 0LUV+cD53pVp7j8OnWogj77F040zG7m24bmY72w/9tdwOC8TF8bTMHLsKJ2swkRcywqo XYyekL0kR8FLz2MXIsAav2B06DsD0FY7nadegJWV8xRHyOhp7lGQ1VzwcQ1RxnoXnqnl PgKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=Dh/cF73ErYSuHDACni0su2ytBNwJ16ERfTFzWF0YGtM=; b=1J07xhmyXrjFiiOer/HBgH6lHyehb+fTFT8tBN6y/lpzA2eZPLIbvY65HlXyu86dsF sggbxcqUoa+/NNp3EEjQQ1yT2PwyDcVIpfb1SPLSw+ctuXJlrTb3oDplh+sXTse0eZL/ vMzQ6DOwD86vmjbSosGL2xBrq3TTSDTl4V4267ty5qrrT7uJV2J9MMloERAa/ftC+m4+ 8ybQD3I8NnG904gC3CcW1Zb3VufIsgJjutxRkihdcw10f6sjJneLyM37wsYWIQSPJ83+ KuvBP0wLn9mCEFzBlTndTwlHRYcBq3bPyyAGGEuRcOMoZhCKeQnyxhQJactLAhGOoOxe IlTg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a13si7944291plh.311.2021.04.22.23.25.37; Thu, 22 Apr 2021 23:25:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240594AbhDWGZe (ORCPT + 99 others); Fri, 23 Apr 2021 02:25:34 -0400 Received: from smtp02.smtpout.orange.fr ([80.12.242.124]:44821 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236910AbhDWGZd (ORCPT ); Fri, 23 Apr 2021 02:25:33 -0400 Received: from localhost.localdomain ([86.243.172.93]) by mwinf5d49 with ME id w6Qu2400721Fzsu036Quj9; Fri, 23 Apr 2021 08:24:55 +0200 X-ME-Helo: localhost.localdomain X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Fri, 23 Apr 2021 08:24:55 +0200 X-ME-IP: 86.243.172.93 From: Christophe JAILLET To: mturquette@baylibre.com, sboyd@kernel.org, gregory.clement@bootlin.com, thomas.petazzoni@free-electrons.com Cc: linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET Subject: [PATCH 0/4] clk: mvebu: Fix some error handling paths + do some clean-up Date: Fri, 23 Apr 2021 08:24:52 +0200 Message-Id: X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This serie fixes some (unlikely) error handlings paths. The 4th patch is completely speculative. When I compile-tested the changes, I had to remove this line in order for it to compile. As it works fine (at least for me) without it, I wonder if it is needed at all. Also, I wonder if the drivers in drivers/clk/mvebu are used by anyone. In order to compile-test the changes, I also had to change the 'bool' in Kconfig by 'bool "blah"'. Without this change, it was not possible to set CONFIG_MVEBU_CLK_CPU required by Makefile. I don't know if I did something wrong, if it is an issue only on my environment or if something got broken at some time in the build chain but it looks spurious. If I'm right and that these drivers never compile and no-one noticed it, maybe removing them is better than fixing some unlikely issues and style. If these drivers should stay, Kconfig may need some love from someone. Christophe JAILLET (4): clk: mvebu: Fix a memory leak in an error handling path clk: mvebu: Fix a another memory leak in an error handling path clk: mvebu: Fix a checkpatch warning clk: mvebu: Remove an unneeded include drivers/clk/mvebu/clk-cpu.c | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) -- 2.27.0