Return-Path: Received: from mail-wi0-f169.google.com ([209.85.212.169]:38721 "EHLO mail-wi0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752364AbbG0IWV (ORCPT ); Mon, 27 Jul 2015 04:22:21 -0400 Received: by wibxm9 with SMTP id xm9so105067602wib.1 for ; Mon, 27 Jul 2015 01:22:20 -0700 (PDT) Received: from ?IPv6:2a01:4240:53f0:43fb::cbb? (b.b.c.0.0.0.0.0.0.0.0.0.0.0.0.0.b.f.3.4.0.f.3.5.0.4.2.4.1.0.a.2.v6.cust.nbox.cz. [2a01:4240:53f0:43fb::cbb]) by smtp.gmail.com with ESMTPSA id dz4sm12252489wib.17.2015.07.27.01.22.19 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Jul 2015 01:22:20 -0700 (PDT) From: Jiri Slaby To: jslaby@suse.com Cc: Stefan Wahren , Mark Brown , Jiri Slaby Subject: [patch added to the 3.12 stable tree] regulator: core: fix constraints output buffer Date: Mon, 27 Jul 2015 10:02:25 +0200 Message-Id: <1437984150-15702-44-git-send-email-jslaby@suse.com> In-Reply-To: <1437984150-15702-1-git-send-email-jslaby@suse.com> References: <1437984150-15702-1-git-send-email-jslaby@suse.com> Sender: stable-owner@vger.kernel.org List-ID: From: Stefan Wahren This patch has been added to the 3.12 stable tree. If you have any objections, please let us know. =============== commit a7068e3932eee8268c4ce4e080a338ee7b8a27bf upstream. The buffer for condtraints debug isn't big enough to hold the output in all cases. So fix this issue by increasing the buffer. Signed-off-by: Stefan Wahren Signed-off-by: Mark Brown Signed-off-by: Jiri Slaby --- drivers/regulator/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c index ef79c1c4280f..eb87279f3c73 100644 --- a/drivers/regulator/core.c +++ b/drivers/regulator/core.c @@ -773,7 +773,7 @@ static int suspend_prepare(struct regulator_dev *rdev, suspend_state_t state) static void print_constraints(struct regulator_dev *rdev) { struct regulation_constraints *constraints = rdev->constraints; - char buf[80] = ""; + char buf[160] = ""; int count = 0; int ret; -- 2.4.6