iwlwifi: mvm: make sure FW contains the right amount of paging sections
authorMatti Gottlieb <matti.gottlieb@intel.com>
Thu, 10 Mar 2016 14:18:26 +0000 (16:18 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Sun, 20 Mar 2016 11:26:02 +0000 (13:26 +0200)
commitcd47a3d3c72825b5feeb31c1974b0dc875692481
treeaedcbbd321b0ac597e341089b5427fb1ffa6c780
parentc94d7996db64582770103b178ea4060516d7e646
iwlwifi: mvm: make sure FW contains the right amount of paging sections

Paging contains 3 sections in the fw. The first for the paging separator,
The second for the CSS block, the third with the paging data.

Currently if the driver finds the paging separator, and there is only
section left (CSS), once reading the CSS section, the driver will
attempt to read the paging data and will go out of the arrays bounds.

Make sure that the FW image contains the right amount of sections for
paging.

Signed-off-by: Matti Gottlieb <matti.gottlieb@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/fw.c