From patchwork Wed Aug 22 07:37:23 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 10572649 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 883AB921 for ; Wed, 22 Aug 2018 07:42:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 78CC82ABF4 for ; Wed, 22 Aug 2018 07:42:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6D2412ACFD; Wed, 22 Aug 2018 07:42:44 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D627C2ABF4 for ; Wed, 22 Aug 2018 07:42:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:From:To: Subject:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=OnTrImCAFKp9GBladSnst+TTftlAflQM75Qa0gtSE+k=; b=PpC+TiWvZDYvtr PT5EOJAVZd9VD9Tgs9+QSiDDqjyRWldo8eCKl2Au3fACJwH8wPm96FVT74h9kjSBH7QZxFoBV3oLG XHwZk/vJl4MRQsfSJslIl9bqTEaW7LDAkHbhQHmWe5Sg29Be+1jSMy326/loMeIpm0cPcXmlv6UVX Qaj8BhO4/QiDnqDGn9D9NZQMbl89QCpa8Uoyv3mFVpZfAiVmSel09wfv+KeV56RO5qDFLM5Lq0nFb wyaRhNrfwES8PnMeyxJeeOaZczY1mRViQfeKydMi98IYUsKJagPIjCgauH85qfciD0u09xp2710QS KsvKSWveuFjYjis8kA+Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fsNmq-0006JK-Jy; Wed, 22 Aug 2018 07:42:40 +0000 Received: from mail.linuxfoundation.org ([140.211.169.12]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fsNmn-0006IW-UN for linux-arm-kernel@lists.infradead.org; Wed, 22 Aug 2018 07:42:39 +0000 Received: from localhost (5355525A.cm-6-6b.dynamic.ziggo.nl [83.85.82.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 2E66FBC1; Wed, 22 Aug 2018 07:42:25 +0000 (UTC) Subject: Patch "clocksource/drivers/stm32: Fix error return code" has been added to the 4.17-stable tree To: Julia.Lawall@lip6.fr, alexander.levin@microsoft.com, alexandre.torgue@st.com, daniel.lezcano@linaro.org, gregkh@linuxfoundation.org, linux-arm-kernel@lists.infradead.org, mcoquelin.stm32@gmail.com, r1528640655-18948-3-git-send-email-Julia.Lawall@lip6.fr, tglx@linutronix.de From: Date: Wed, 22 Aug 2018 09:37:23 +0200 Message-ID: <153492344324191@kroah.com> MIME-Version: 1.0 X-stable: commit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180822_004238_004916_A3E3AEEE X-CRM114-Status: GOOD ( 10.34 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: stable-commits@vger.kernel.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This is a note to let you know that I've just added the patch titled clocksource/drivers/stm32: Fix error return code to the 4.17-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: clocksource-drivers-stm32-fix-error-return-code.patch and it can be found in the queue-4.17 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let know about it. From foo@baz Wed Aug 22 09:16:55 CEST 2018 From: Julia Lawall Date: Sun, 10 Jun 2018 16:24:15 +0200 Subject: clocksource/drivers/stm32: Fix error return code From: Julia Lawall [ Upstream commit a26ed66c20f080c510fcf5bd448bce204f2c19d7 ] Return an error code on failure. Problem found using Coccinelle. Signed-off-by: Julia Lawall Signed-off-by: Thomas Gleixner Cc: Daniel Lezcano Cc: kernel-janitors@vger.kernel.org Cc: Maxime Coquelin Cc: Alexandre Torgue Cc: linux-arm-kernel@lists.infradead.org Link: https://lkml.kernel.org/r1528640655-18948-3-git-send-email-Julia.Lawall@lip6.fr Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/clocksource/timer-stm32.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) Patches currently in stable-queue which might be from Julia.Lawall@lip6.fr are queue-4.17/clocksource-drivers-stm32-fix-error-return-code.patch --- a/drivers/clocksource/timer-stm32.c +++ b/drivers/clocksource/timer-stm32.c @@ -304,8 +304,10 @@ static int __init stm32_timer_init(struc to->private_data = kzalloc(sizeof(struct stm32_timer_private), GFP_KERNEL); - if (!to->private_data) + if (!to->private_data) { + ret = -ENOMEM; goto deinit; + } rstc = of_reset_control_get(node, NULL); if (!IS_ERR(rstc)) {