diff options
| author | Siba Prasad <sibap@codeaurora.org> | 2017-02-02 17:18:40 +0530 |
|---|---|---|
| committer | Siba Prasad <sibap@codeaurora.org> | 2017-02-15 12:40:01 +0530 |
| commit | 3b2628faf3a35419878d82ef0acb5c3b7f0873d5 (patch) | |
| tree | adf34b296ed61eb8fe48f6c90d50c7bfbef3d195 /tools/perf/scripts/python/netdev-times.py | |
| parent | 110e102fe3de3bf08fcdb3f2117530f632c5a99f (diff) | |
mmc: card: block: check the user controlled parameters to avoid overflow
According to specs, some commands require a delay after
issuing the command. idata->ic struct is received from
user in mmc_blk_ioctl_cmd(). So idata->ic.postsleep_min_us,
idata->ic.postsleep_max_us are user controlled. If the min
and max values are set such as max < min, then operation in
the function do_usleep_range will overflow. For avoiding this,
put a condition for checking max < min. If the condition is
true, then print the error message with respective values and
return error.
Change-Id: I76828b58aa46fc4e195da4ae0babb02a7abf6bbe
Signed-off-by: Siba Prasad <sibap@codeaurora.org>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions
