aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/aurora/nb8800.c
diff options
context:
space:
mode:
authorMichael Chan <michael.chan@broadcom.com>2016-02-22 02:10:26 -0500
committerDavid S. Miller <davem@davemloft.net>2016-02-23 19:12:51 -0500
commitfbb0fa8b48892a3db8f5b89fb591c741fbd2fe7a (patch)
treed60189acd5cb20688c21462d08fb774f6c56ebed /drivers/net/ethernet/aurora/nb8800.c
parenttunnel: Clear IPCB(skb)->opt before dst_link_failure called (diff)
downloadlinux-dev-fbb0fa8b48892a3db8f5b89fb591c741fbd2fe7a.tar.xz
linux-dev-fbb0fa8b48892a3db8f5b89fb591c741fbd2fe7a.zip
bnxt_en: Fix zero padding of tx push data.
The arithmetic to zero pad the last 64-bit word in the push buffer is not correct. 1. It should be pdata + length to get to the end. 2. 'pdata' is void pointer and passing it to PTR_ALIGN() will cast the aligned pointer to void. Pass 'end' which is u64 pointer to PTR_ALIGN() instead so that the aligned pointer - 1 is the last 64-bit pointer to data. Signed-off-by: Michael Chan <michael.chan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/aurora/nb8800.c')
0 files changed, 0 insertions, 0 deletions