summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
diff options
context:
space:
mode:
authorMichal Schmidt2013-07-01 17:23:05 +0200
committerDavid S. Miller2013-07-02 09:15:56 +0200
commit058eec4116935c5640299913e1e0715e87ec622a (patch)
treed006037c2fe6b47f99402d9cc2de415938ea51b0 /drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
parentnet: sctp: get rid of SCTP_DBG_TSNS entirely (diff)
downloadkernel-qcow2-linux-058eec4116935c5640299913e1e0715e87ec622a.tar.gz
kernel-qcow2-linux-058eec4116935c5640299913e1e0715e87ec622a.tar.xz
kernel-qcow2-linux-058eec4116935c5640299913e1e0715e87ec622a.zip
bnx2x: remove zeroing of dump data buffer
There is no need to initialize the dump data with zeros. data is allocated with vzalloc, so it's already zero-filled. More importantly, the memset is harmful, because dump->len (the length requested by userspace) can be bigger than the allocated buffer (whose size is determined by asking the driver's .get_dump_flag method). Signed-off-by: Michal Schmidt <mschmidt@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c')
0 files changed, 0 insertions, 0 deletions