From patchwork Thu Jan 26 09:29:20 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 92499 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp96199qgi; Thu, 26 Jan 2017 01:30:13 -0800 (PST) X-Received: by 10.84.253.2 with SMTP id z2mr2760285pll.116.1485423013884; Thu, 26 Jan 2017 01:30:13 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 197si25983013pgd.70.2017.01.26.01.30.13; Thu, 26 Jan 2017 01:30:13 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753209AbdAZJaL (ORCPT + 4 others); Thu, 26 Jan 2017 04:30:11 -0500 Received: from mailout2.w1.samsung.com ([210.118.77.12]:34105 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753196AbdAZJaE (ORCPT ); Thu, 26 Jan 2017 04:30:04 -0500 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OKD00647RQ14M70@mailout2.w1.samsung.com>; Thu, 26 Jan 2017 09:30:01 +0000 (GMT) Received: from eusmges4.samsung.com (unknown [203.254.199.244]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20170126093000eucas1p29fac8b79e1f27c7b0bdaf28d13b831f2~dSFlETzCu3033830338eucas1p2D; Thu, 26 Jan 2017 09:30:00 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges4.samsung.com (EUCPMTA) with SMTP id E1.7D.28517.791C9885; Thu, 26 Jan 2017 09:30:00 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20170126092959eucas1p28ac04e5c3b9c4ae882047c93a57d3a4e~dSFkb3QJA3033830338eucas1p2C; Thu, 26 Jan 2017 09:29:59 +0000 (GMT) X-AuditID: cbfec7f4-f79716d000006f65-14-5889c1978b84 Received: from eusync3.samsung.com ( [203.254.199.213]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id E9.FC.06687.7D1C9885; Thu, 26 Jan 2017 09:31:03 +0000 (GMT) Received: from AMDC2765.digital.local ([106.116.147.25]) by eusync3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OKD007J9RPVXW40@eusync3.samsung.com>; Thu, 26 Jan 2017 09:29:59 +0000 (GMT) From: Marek Szyprowski To: linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, linux-samsung-soc@vger.kernel.org Cc: Marek Szyprowski , Sylwester Nawrocki , Krzysztof Kozlowski , Linus Walleij , Tomasz Figa , Bartlomiej Zolnierkiewicz Subject: [PATCH v3 REBASED 06/13] pinctrl: samsung: Fix samsung_pinctrl_create_functions return value Date: Thu, 26 Jan 2017 10:29:20 +0100 Message-id: <1485422967-30643-3-git-send-email-m.szyprowski@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1485422967-30643-1-git-send-email-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAAzWRbUhTYRTHe+7dvbsuF5c58mAqMpSi8A324ZJhRVELCvwSzb7UyMuUtqm7 vkM0fCk3mOayXPUhxVSYydYmy0rnNs2lsZYgGvnyZVJg2tukCGbkdte333nO//z/5/BQuGRZ kEZV6GpYvU6lkZEigXvmTyjX6jMqC+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iUli4fVHzCBVbAKGEl1vu8CqRASaGSUalvSC OcwCE5gkZn5qYOpi5OAQFkiXmPSkEKSBRUBVomHNWUYQm1fAQ6L1+iR2iHVyEiePTQY7g1PA U2J/0zawuJDAREaJo7OzJzDyLmBkWMUoklpanJueW2yoV5yYW1yal66XnJ+7iREY9NuO/dy8 g/HSxuBDjAIcjEo8vAd2dEQIsSaWFVfmHmKU4GBWEuE9tK8zQog3JbGyKrUoP76oNCe1+BCj KdBRE5mlRJPzgRGZVxJvaGJobmloZGxhYW5kpCTOW/LhSriQQHpiSWp2ampBahFMHxMHp1QD 49S3Podqky9tFfE49Yi/boLzDePMzwVvjm9bdiCSpa9SxzDLTuG7T0Xg5kfNm7Q6de7KWk91 nBwg3/+WT91Qeot+352vbmq72Dm0g9uMnhbeONk3dUHZjKBnYkprf068x5PBlrvww3LO8JyJ 1zUvNh3IOS1xvi95k9hk709p2Yuuvy1Q6S/fpsRSnJFoqMVcVJwIAIY9WoqQAgAA X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170126092959eucas1p28ac04e5c3b9c4ae882047c93a57d3a4e X-Msg-Generator: CA X-Sender-IP: 182.198.249.179 X-Local-Sender: =?utf-8?q?Marek_Szyprowski=1BSRPOL-Kernel_=28TP=29=1B?= =?utf-8?b?7IK87ISx7KCE7J6QG1NlbmlvciBTb2Z0d2FyZSBFbmdpbmVlcg==?= X-Global-Sender: =?utf-8?q?Marek_Szyprowski=1BSRPOL-Kernel_=28TP=29=1BSam?= =?utf-8?q?sung_Electronics=1BSenior_Software_Engineer?= X-Sender-Code: =?utf-8?q?C10=1BEHQ=1BC10CD02CD027392?= CMS-TYPE: 201P X-HopCount: 7 X-CMS-RootMailID: 20170126092959eucas1p28ac04e5c3b9c4ae882047c93a57d3a4e X-RootMTR: 20170126092959eucas1p28ac04e5c3b9c4ae882047c93a57d3a4e References: <1485422967-30643-1-git-send-email-m.szyprowski@samsung.com> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org Return proper error code in case of memory allocation failure. Signed-off-by: Marek Szyprowski Reviewed-by: Krzysztof Kozlowski Acked-by: Tomasz Figa --- drivers/pinctrl/samsung/pinctrl-samsung.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/pinctrl/samsung/pinctrl-samsung.c b/drivers/pinctrl/samsung/pinctrl-samsung.c index b11e67e85460..10b3fd826231 100644 --- a/drivers/pinctrl/samsung/pinctrl-samsung.c +++ b/drivers/pinctrl/samsung/pinctrl-samsung.c @@ -751,7 +751,7 @@ static struct samsung_pmx_func *samsung_pinctrl_create_functions( functions = devm_kzalloc(dev, func_cnt * sizeof(*functions), GFP_KERNEL); if (!functions) - return ERR_PTR(-EINVAL); + return ERR_PTR(-ENOMEM); func = functions; /*