From: Nishanth Menon Date: Thu, 25 Oct 2012 23:50:43 +0000 (+0200) Subject: PM / devfreq: fix sscanf handling for writable sysfs entries X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~88^2~4^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=12e26265e6225bf93b2fdc70399774b31e2dd980;p=pandora-kernel.git 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 Signed-off-by: Nishanth Menon Acked-by: MyungJoo Ham Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed