]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite53e136535ff1829e2db9a0d492305c8c7983dcd
tree00e7334e6b5cb7b63f1c6ac26e91adf0ad62db0f
parent00283a00702f27602d63360340f676774a75ab26
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