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)
commit1d8f5c1385402552f29143a4793875393a360038
tree4122d995f1f82e6c31be25c7fd5b84cb50319b43
parentb68d0ae7e58624c33f2eddab471fee55db27dbf9
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