summaryrefslogtreecommitdiffstats
path: root/drivers/net/bnx2x/bnx2x_cmn.c
diff options
context:
space:
mode:
authorEric Dumazet2010-12-07 23:26:15 +0100
committerDavid S. Miller2010-12-10 05:47:04 +0100
commit4bc65dd8d88671712d71592a83374cfb0b5fce7a (patch)
tree322b1618fabdc770b8a63930ab5c320a16fe5cc5 /drivers/net/bnx2x/bnx2x_cmn.c
parentThe new jhash implementation (diff)
downloadkernel-qcow2-linux-4bc65dd8d88671712d71592a83374cfb0b5fce7a.tar.gz
kernel-qcow2-linux-4bc65dd8d88671712d71592a83374cfb0b5fce7a.tar.xz
kernel-qcow2-linux-4bc65dd8d88671712d71592a83374cfb0b5fce7a.zip
filter: use size of fetched data in __load_pointer()
__load_pointer() checks data we fetch from skb is included in head portion, but assumes we fetch one byte, instead of up to four. This wont crash because we have extra bytes (struct skb_shared_info) after head, but this can read uninitialized bytes. Fix this using size of the data (1, 2, 4 bytes) in the test. Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bnx2x/bnx2x_cmn.c')
0 files changed, 0 insertions, 0 deletions