Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1705930

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

From MyungJoo Ham <myungjoo.ham@samsung.com>
Newsgroups linux.kernel
Subject RE: [PATCH] devfreq: add error check for sscanf in userspace governor
Date 2017-08-08 02:20 +0200
Message-ID <uc0pB-7WI-13@gated-at.bofh.it> (permalink)
References <ubPXd-bV-43@gated-at.bofh.it> <ubPXd-bV-45@gated-at.bofh.it> <uc0pB-7WI-15@gated-at.bofh.it> <ubPXd-bV-43@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


> 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(-)

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] devfreq: add error check for sscanf in userspace governor Santosh Mardi <gsantosh@codeaurora.org> - 2017-08-07 15:10 +0200
  RE: [PATCH] devfreq: add error check for sscanf in userspace  governor MyungJoo Ham <myungjoo.ham@samsung.com> - 2017-08-08 02:20 +0200
  Re: [PATCH] devfreq: add error check for sscanf in userspace  governor Chanwoo Choi <cw00.choi@samsung.com> - 2017-08-08 03:00 +0200
  Re: [PATCH] devfreq: add error check for sscanf in userspace governor Pavan Kondeti <pkondeti@codeaurora.org> - 2017-08-08 09:00 +0200
    Re: [PATCH] devfreq: add error check for sscanf in userspace governor Saravana Kannan <skannan@codeaurora.org> - 2017-08-08 21:30 +0200

csiph-web