net: ieee802154: return -EINVAL for unknown addr type
Alexander Aring authored
commit 30393181 upstream.

This patch adds handling to return -EINVAL for an unknown addr type. The
current behaviour is to return 0 as successful but the size of an
unknown addr type is not defined and should return an error like -EINVAL.

Fixes: 94160108

 ("net/ieee802154: fix uninit value bug in dgram_sendmsg")
Signed-off-by: default avatarAlexander Aring <aahringo@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
dc54ff9f
Name Last commit Last update
Documentation iio: ABI: Fix wrong format of differential capacitance channel ABI.
LICENSES LICENSES/deprecated: add Zlib license text
arch arm64: topology: fix possible overflow in amu_fie_setup()
block blk-throttle: prevent overflow while calculating wait time
certs certs/blacklist_hashes.c: fix const confusion in certs blacklist
crypto crypto: akcipher - default implementation for setting a private key
drivers clk: bcm2835: Make peripheral PLLC critical
fs io_uring/af_unix: defer registered files gc to io_uring release
include net: ieee802154: return -EINVAL for unknown addr type
init Kconfig: Add option for asm goto w/ tied outputs to workaround clang-13 bug
ipc ipc/mqueue: use get_tree_nodev() in mqueue_get_tree()
kernel rcu-tasks: Convert RCU_LOCKDEP_WARN() to WARN_ONCE()
lib dyndbg: drop EXPORTed dynamic_debug_exec_queries
mm mm: hugetlb: fix UAF in hugetlb_handle_userfault
net io_uring/af_unix: defer registered files gc to io_uring release
samples x86: Prepare inline-asm for straight-line-speculation
scripts kbuild: rpm-pkg: fix breakage when V=1 is used
security hardening: Remove Clang's enable flag for -ftrivial-auto-var-init=zero
sound ASoC: SOF: pci: Change DMI match info to support all Chrome platforms
tools perf intel-pt: Fix segfault in intel_pt_print_info() with uClibc
usr usr/include/Makefile: add linux/nfc.h to the compile-test coverage
virt KVM: SEV: add cache flush to solve SEV cache incoherency issues
.clang-format Merge tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma
.cocciconfig scripts: add Linux .cocciconfig for coccinelle
.get_maintainer.ignore Opt out of scripts/get_maintainer.pl
.gitattributes
.gitignore
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS
Makefile
README
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.