wil6210: Sanity check for reported DMA length
authorVladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Sun, 12 May 2013 11:43:33 +0000 (14:43 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 22 May 2013 19:05:35 +0000 (15:05 -0400)
commite270045b569cc7030abd29857f3a4e7906524ec0
tree00e7334e6b5cb7b63f1c6ac26e91adf0ad62db0f
parent7e594444448f221cff66a9309cbfd17430e463a0
wil6210: Sanity check for reported DMA length

If Rx descriptor contains garbage, it is possible to access memory beyond
allocated buffer.

Check this condition and drop Rx if reported length is
unreasonable large

Signed-off-by: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/wil6210/txrx.c
This page took 0.029476 seconds and 5 git commands to generate.