Skip to contentSkip to conversation

PM / devfreq: fix sscanf handling for writable sysfs entries

PATCH MyungJoo Ham 1 participant 1 message Oct 17, 2012

lore
Share & tools
lore

MyungJoo Ham

author Acked-by
#0 lore raw
Quoted 11 lines

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

Quoted 8 lines
Cc MyungJoo Ham <[email protected]>
Cc Kyungmin Park <[email protected]>
Cc "Rafael J. Wysocki" <[email protected]>
Cc Kevin Hilman <[email protected]>

�淸�{.n�+돴윯돪�+%듚�깁負쪐w��{.n�+돴쪐{깸G쳺��{ay����,j�f"톒쉹��묎�z_溫(�쉸듶줷"얎�m����G쳺�◀?솳鈺�&x�~뤳턨O뺞촾퇉v�^�m��� �띠�◀?뻀�