diff options
author | 2013-10-22 15:24:44 -0700 | |
---|---|---|
committer | 2013-11-11 14:38:56 -0500 | |
commit | fe1c9a443e0d1e0af790883f091fb1c4f418bc8f (patch) | |
tree | 5bb5700952ca24730ebd1f253353290d38a29b0e /tools/perf/scripts/python/export-to-postgresql.py | |
parent | mwifiex: replace u16 with __le16 in struct mwifiex_types_power_group (diff) | |
download | linux-dev-fe1c9a443e0d1e0af790883f091fb1c4f418bc8f.tar.xz linux-dev-fe1c9a443e0d1e0af790883f091fb1c4f418bc8f.zip |
mwifiex: fix invalid memory access in mwifiex_get_power_level()
With "while (length)" check we may end up in accessing invalid
memory in last iteration.
This patch makes sure that tlv length is not less than the length
of structure mwifiex_power_group when min/max power is calculated.
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions