[<prev] [next>] [day] [month] [year] [list]
Message-id: <686519.131861350449936406.JavaMail.weblogic@epml24>
Date: Wed, 17 Oct 2012 04:58:58 +0000 (GMT)
From: MyungJoo Ham <myungjoo.ham@...sung.com>
To: Nishanth Menon <nm@...com>,
"linux-pm@...r.kernel.org" <linux-pm@...r.kernel.org>
Cc: ¹Ú°æ¹Î <kyungmin.park@...sung.com>,
"Rafael J. Wysocki" <rjw@...k.pl>, Kevin Hilman <khilman@...com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 1/2] PM / devfreq: fix sscanf handling for writable sysfs
entries
> sscanf returns 0 when an invalid parameter like:
> echo -n "a">min_freq
> is attempted. Returning back the return result(0) will
> cause the command not to return back to command
> prompt.
>
> Instead, just return -EINVAL when sscanf does not
> return 1.
>
> This is done for min_freq, max_freq and polling_interval
>
> Cc: MyungJoo Ham <myungjoo.ham@...sung.com>
> Cc: Kyungmin Park <kyungmin.park@...sung.com>
> Cc: "Rafael J. Wysocki" <rjw@...k.pl>
> Cc: Kevin Hilman <khilman@...com>
> Cc: linux-pm@...r.kernel.org
> Cc: linux-kernel@...r.kernel.org
>
> Signed-off-by: Nishanth Menon <nm@...com>
Acked-by: MyungJoo Ham <myungjoo.ham@...sung.com>
Powered by blists - more mailing lists