lkml.org 
[lkml]   [2017]   [Aug]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH] devfreq: add error check for sscanf in userspace governor
Date
What this patch does:

Current implementation of store_freq function in devfreq
userspace governor executes further, even if error is returned
from sscanf. This will result in setting up wrong frequency value.

This patch adds proper error check to bail out if
any error is returned.

Santosh Mardi (1):
devfreq: add error check for sscanf in userspace governor

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

--
1.9.1

\
 
 \ /
  Last update: 2017-08-07 15:08    [W:0.071 / U:3.140 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site