Andrew Rybchenko e70c70c38d sfc: fix potential stack corruption from running past stat bitmask
On 32-bit systems, mask is only an array of 3 longs, not 4, so don't try
to write to mask[3].
Also include build-time checks in case the size of the bitmask changes.

Fixes: 3c36a2aded8c ("sfc: display vadaptor statistics for all interfaces")
Signed-off-by: Edward Cree <ecree@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-08-26 21:40:44 -07:00
..
2013-08-29 23:34:51 +01:00
2013-08-29 23:34:51 +01:00
2013-08-29 23:34:51 +01:00
2016-06-16 14:24:06 -07:00
2013-12-12 22:06:54 +00:00
2015-12-23 22:06:39 -05:00
2013-08-29 23:34:51 +01:00
2013-08-29 23:34:51 +01:00
2015-10-01 09:59:24 -07:00
2013-08-29 23:34:51 +01:00
2013-08-29 23:34:51 +01:00
2015-12-15 12:46:26 -05:00
2013-08-29 23:34:51 +01:00