net: wireless: bcmdhd: fix buffer overrun in wl_cfg80211_add_iw_ie
authorInsun Song <insun.song@broadcom.com>
Wed, 1 Feb 2017 03:57:20 +0000 (19:57 -0800)
committerManish Tuteja <mtuteja@nvidia.com>
Mon, 17 Apr 2017 23:56:08 +0000 (16:56 -0700)
commitc954fbde7184885b8f847a41fad33c7b3cc23370
treec6a043306f97fe42b43cd1c23774f118f53c53ac
parentcb3f7c82c555f33499e918fdf2bca6c4da905dbe
net: wireless: bcmdhd: fix buffer overrun in wl_cfg80211_add_iw_ie

added boundary check not to override allocated buffer.

Bug 1887273
Bug 200288656

Signed-off-by: Insun Song <insun.song@broadcom.com>
Signed-off-by: Gagan Grover <ggrover@nvidia.com>
Change-Id: I76211db7ef595fc41cf5d5d58de79cedfe80e521
Bug: 32125310
Reviewed-on: http://git-master/r/1459052
(cherry picked from commit 6e92cb348bf85964526c7f257e11972608bc3f3e)
Reviewed-on: http://git-master/r/1463480
GVS: Gerrit_Virtual_Submit
Reviewed-by: Manish Tuteja <mtuteja@nvidia.com>
drivers/net/wireless/bcmdhd/wl_cfg80211.c