net: atlantic: fix potential error handling
Pavel Belous authored
commit 380ec5b9 upstream.

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: 018423e9

 ("net: ethernet: aquantia: Add ring support code")
Signed-off-by: default avatarPavel Belous <pbelous@marvell.com>
Signed-off-by: default avatarIgor Russkikh <irusskikh@marvell.com>
Signed-off-by: default avatarDmitry Bogdanov <dbogdanov@marvell.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
10b2668c
Name Last commit Last update
Documentation mm: Avoid creating virtual address aliases in brk()/mmap()/mremap()
LICENSES LICENSES: Rename other to deprecated
arch MIPS: VPE: Fix a double free and a memory leak in 'release_vpe()'
block block, bfq: do not plug I/O for bfq_queues with no proc refs
certs PKCS#7: Refactor verify_pkcs7_signature()
crypto crypto: rename sm3-256 to sm3 in hash_algo_name
drivers net: atlantic: fix potential error handling
fs io_uring: fix 32-bit compatability with sendmsg/recvmsg
include usb: charger: assign specific number for enum value
init Revert "um: Enable CONFIG_CONSTRUCTORS"
ipc Revert "ipc,sem: remove uneeded sem_undo_list lock usage in exit_sem()"
kernel tracing: Disable trace_printk() on post poned tests
lib lib/stackdepot.c: fix global out-of-bounds in stack_slabs
mm mm: Avoid creating virtual address aliases in brk()/mmap()/mremap()
net net: netlink: cap max groups which will be considered in netlink_bind()
samples samples/bpf: Set -fno-stack-protector when building BPF programs
scripts kbuild: fix DT binding schema rule to detect command line changes
security selinux: ensure we cleanup the internal AVC counters on error in avc_update()
sound ASoC: SOF: Intel: hda: Add iDisp4 DAI
tools ipv6: Fix route replacement with dev-only route
usr gen_initramfs_list.sh: fix 'bad variable name' error
virt KVM: arm64: Treat emulated TVAL TimerValue as a signed 32-bit integer
.clang-format clang-format: Update with the latest for_each macro list
.cocciconfig scripts: add Linux .cocciconfig for coccinelle
.get_maintainer.ignore Opt out of scripts/get_maintainer.pl
.gitattributes .gitattributes: set git diff driver for C source code files
.gitignore Merge tag 'modules-for-v5.4' of git://git.kernel.org/pub/scm/linux/kernel/git/jeyu/linux
.mailmap Merge tag 'armsoc-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc
COPYING COPYING: use the new text with points to the license files
CREDITS MAINTAINERS: Remove Simon as Renesas SoC Co-Maintainer
Kbuild kbuild: do not descend to ./Kbuild when cleaning
Kconfig docs: kbuild: convert docs to ReST and rename to *.rst
MAINTAINERS MAINTAINERS: Update drm/i915 bug filing URL
Makefile Linux 5.4.23
README Drop all 00-INDEX files from Documentation/
Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.