public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] devfreq: add error check for sscanf in userspace governor
@ 2017-08-07 13:06 Santosh Mardi
  2017-08-07 13:06 ` Santosh Mardi
  0 siblings, 1 reply; 6+ messages in thread
From: Santosh Mardi @ 2017-08-07 13:06 UTC (permalink / raw)
  To: myungjoo.ham, kyungmin.park, rafael.j.wysocki, cw00.choi
  Cc: linux-pm, linux-kernel, gsantosh, gsantosh, skannan, rgottimu

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-08-08 19:26 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-07 13:06 [PATCH] devfreq: add error check for sscanf in userspace governor Santosh Mardi
2017-08-07 13:06 ` Santosh Mardi
2017-08-08  0:14   ` MyungJoo Ham
2017-08-08  0:51   ` Chanwoo Choi
2017-08-08  6:56   ` Pavan Kondeti
2017-08-08 19:26     ` Saravana Kannan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox