commit | e70c70c38d7a5ced76fc8b1c4a7ccee76e9c2911 | [log] [tgz] |
---|---|---|
author | Andrew Rybchenko <Andrew.Rybchenko@oktetlabs.ru> | Fri Aug 26 11:19:34 2016 +0100 |
committer | David S. Miller <davem@davemloft.net> | Fri Aug 26 21:40:44 2016 -0700 |
tree | f0409c417d22904e551a2240f711e6ffbb4848a8 | |
parent | 5c1f5b457b86a263d0e21c8f3ebe83d515e7bcce [diff] |
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>