summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorPavel Belous <pbelous@marvell.com>2020-02-14 18:44:56 +0300
committerDavid S. Miller <davem@davemloft.net>2020-02-17 06:03:39 +0300
commit380ec5b9af7f0d57dbf6ac067fd9f33cff2fef71 (patch)
treeffb49c50ef40d0121f90b0f9b0a81ede7c8d1433 /tools/perf/scripts/python
parenta4980919ad6a7be548d499bc5338015e1a9191c6 (diff)
downloadlinux-380ec5b9af7f0d57dbf6ac067fd9f33cff2fef71.tar.xz
net: atlantic: fix potential error handling
Code inspection found that in case of mapping error we do return current 'ret' value. But beside error, it is used to count number of descriptors allocated for the packet. In that case map_skb function could return '1'. Changing it to return zero (number of mapped descriptors for skb) Fixes: 018423e90bee ("net: ethernet: aquantia: Add ring support code") Signed-off-by: Pavel Belous <pbelous@marvell.com> Signed-off-by: Igor Russkikh <irusskikh@marvell.com> Signed-off-by: Dmitry Bogdanov <dbogdanov@marvell.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions