Messages in this thread | | | Subject | RE: [PATCH] devfreq: add error check for sscanf in userspace governor | From | MyungJoo Ham <> | Date | Tue, 08 Aug 2017 00:14:43 +0000 |
| |
> store_freq function of devfreq userspace governor > executes further, even if error is returned from sscanf, > this will result in setting up wrong frequency value. > > Add proper error check to bail out if any error is returned. > > Signed-off-by: Santosh Mardi <gsantosh@codeaurora.org>
Acked-by: MyungJoo Ham <myungjoo.ham@samsung.com>
> --- > drivers/devfreq/governor_userspace.c | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-)
| |