diff options
author | Luciano Coelho <coelho@ti.com> | 2011-12-13 11:39:02 +0200 |
---|---|---|
committer | Luciano Coelho <coelho@ti.com> | 2011-12-15 09:58:41 +0200 |
commit | f414218ed8bc716825755c9cf59f16a19f28314a (patch) | |
tree | e2374f0aa4635694bf9d55e00d93e88e4dcb33b8 /drivers/misc/altera-stapl/altera-lpt.c | |
parent | 3f1764945eaac532c20ab1f23afa352a40f797b2 (diff) |
wl12xx: don't write out of bounds when hlid > WL12XX_MAX_LINKS
We should not get an hlid value bigger than WL12XX_MAX_LINKS from
wl1271_rx_handle_data(). We have a WARN_ON in case it happens. But
despite the warning, we would still go ahead and write the hlid bit
into active_hlids (a stack variable). This would cause us to
overwrite other data in the stack.
To avoid this problem, we now skip the write when issuing the warning,
so at least we don't corrupt data.
Signed-off-by: Luciano Coelho <coelho@ti.com>
Diffstat (limited to 'drivers/misc/altera-stapl/altera-lpt.c')
0 files changed, 0 insertions, 0 deletions