RE: [PATCH] devfreq: add error check for sscanf in userspace governor

From: MyungJoo Ham
Date: Mon Aug 07 2017 - 20:15:32 EST


> 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@xxxxxxxxxxxxxx>

Acked-by: MyungJoo Ham <myungjoo.ham@xxxxxxxxxxx>

> ---
> drivers/devfreq/governor_userspace.c | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)