]> git.baikalelectronics.ru Git - kernel.git/commit
staging: wilc1000: off by one in wilc_wfi_cfg80211_mgmt_types
authorSasha Levin <sasha.levin@oracle.com>
Thu, 28 May 2015 15:03:56 +0000 (11:03 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 31 May 2015 00:00:15 +0000 (09:00 +0900)
commitda12c74764a3fdfaeef009db527c7cd782b0b8eb
tree8443f90229a77c8fc16c972d75b1daaa4775fda4
parent290d1de86fb9577480a81f34515d23cfc479b174
staging: wilc1000: off by one in wilc_wfi_cfg80211_mgmt_types

NL80211_IFTYPE_MAX represents the largest interface type number defined,
so declaring the array with that size will actually leave out the last
interface.

This causes invalid memory access whenever this array is used, which starts
happening at boot.

Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/wilc_wfi_cfgoperations.h