]> git.baikalelectronics.ru Git - kernel.git/commit
mwifiex: fix potential integer truncation
authorchunfan chen <jeffc@marvell.com>
Wed, 16 Dec 2015 12:21:42 +0000 (04:21 -0800)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 30 Dec 2015 15:31:16 +0000 (17:31 +0200)
commitad867cf4df0bc8247929c114a089381ef0b98f0f
tree4122d995f1f82e6c31be25c7fd5b84cb50319b43
parenteecf4933fda54fa8224c9a289f1ecdc4f90f1f84
mwifiex: fix potential integer truncation

At some places, ie length is truncated from u16 to u8 while
storing it to driver's internal variable. This patch fixes
the problem.

Signed-off-by: chunfan chen <jeffc@marvell.com>
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/mwifiex/main.h
drivers/net/wireless/marvell/mwifiex/sta_ioctl.c