Messages in this thread | | | Date | Wed, 17 Oct 2012 04:58:58 +0000 (GMT) | From | MyungJoo Ham <> | 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@samsung.com> > Cc: Kyungmin Park <kyungmin.park@samsung.com> > Cc: "Rafael J. Wysocki" <rjw@sisk.pl> > Cc: Kevin Hilman <khilman@ti.com> > Cc: linux-pm@vger.kernel.org > Cc: linux-kernel@vger.kernel.org > > Signed-off-by: Nishanth Menon <nm@ti.com>
Acked-by: MyungJoo Ham <myungjoo.ham@samsung.com>
| |