selinux: Fix error return code in sel_ib_pkey_sid_slow()
Chen Zhou authored
commit c350f8be upstream.

Fix to return a negative error code from the error handling case
instead of 0 in function sel_ib_pkey_sid_slow(), as done elsewhere
in this function.

Cc: stable@vger.kernel.org
Fixes: 409dcf31

 ("selinux: Add a cache for quicker retreival of PKey SIDs")
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarChen Zhou <chenzhou10@huawei.com>
Signed-off-by: default avatarPaul Moore <paul@paul-moore.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
46977ef9
Name Last commit Last update
Documentation media: videodev2.h: RGB BT2020 and HSV are always full range
LICENSES LICENSES: Remove CC-BY-SA-4.0 license text
arch ARM: 9019/1: kprobes: Avoid fortify_panic() when copying optprobe template
block blk-cgroup: Pre-allocate tree node on blkg_conf_prep
certs export.h: remove VMLINUX_SYMBOL() and VMLINUX_SYMBOL_STR()
crypto crypto: algif_skcipher - EBUSY on aio should be an error
drivers mei: protect mei_cl_mtu from null dereference
firmware Fix built-in early-load Intel microcode alignment
fs btrfs: fix potential overflow in cluster_pages_for_defrag on 32bit arch
include netfilter: use actual socket sk rather than skb sk when routing harder
init printk: reduce LOG_BUF_SHIFT range for H8300
ipc ipc/util.c: sysvipc_find_ipc() incorrectly updates position index
kernel futex: Don't enable IRQs unconditionally in put_pi_state()
lib lib/crc32test: remove extra local_irq_disable/enable
mm mm: mempolicy: fix potential pte_unmap_unlock pte error
net cfg80211: regulatory: Fix inconsistent format argument
samples misc: vop: add round_up(x,4) for vring_size to avoid kernel panic
scripts scripts/setlocalversion: make git describe output more reliable
security selinux: Fix error return code in sel_ib_pkey_sid_slow()
sound ALSA: hda: prevent undefined shift in snd_hdac_ext_bus_get_link()
tools selftests: proc: fix warning: _GNU_SOURCE redefined
usr initramfs: restore default compression behavior
virt KVM: arm64: Assume write fault on S1PTW permission fault on instruction fetch
.clang-format clang-format: Set IndentWrappedFunctionNames false
.cocciconfig scripts: add Linux .cocciconfig for coccinelle
.get_maintainer.ignore
.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.
See Documentation/00-INDEX for a list of what is contained in each file.

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.