nfc: st21nfca: fix incorrect validating logic in EVT_TRANSACTION
Martin Faltesek authored
commit 77e5fe8f upstream.

The first validation check for EVT_TRANSACTION has two different checks
tied together with logical AND. One is a check for minimum packet length,
and the other is for a valid aid_tag. If either condition is true (fails),
then an error should be triggered.  The fix is to change && to ||.

Fixes: 26fc6c7f

 ("NFC: st21nfca: Add HCI transaction event support")
Cc: stable@vger.kernel.org
Signed-off-by: default avatarMartin Faltesek <mfaltesek@google.com>
Reviewed-by: default avatarGuenter Roeck <groeck@chromium.org>
Reviewed-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
2146a57e
Name Last commit Last update
Documentation ata: libata-transport: fix {dma|pio|xfer}_mode sysfs files
LICENSES LICENSES: Remove CC-BY-SA-4.0 license text
arch bpf, arm64: Clear prog->jited_len along prog->jited
block blk-iolatency: Fix inflight count imbalances and IO hangs on offline
certs certs: Trigger creation of RSA module signing key if it's not an RSA key
crypto crypto: authenc - Fix sleep in atomic context in decrypt_tail
drivers nfc: st21nfca: fix incorrect validating logic in EVT_TRANSACTION
firmware Fix built-in early-load Intel microcode alignment
fs cifs: return errors during session setup during reconnects
include nodemask: Fix return values to be unsigned
init init/main.c: return 1 from handled __setup() functions
ipc shm: extend forced shm destroy to support objects from several IPC nses
kernel tracing: Avoid adding tracer option before update_tracer_options
lib nodemask: Fix return values to be unsigned
mm hugetlb: fix huge_pmd_unshare address update
net Revert "net: af_key: add check for pfkey_broadcast in function pfkey_process"
samples samples/kretprobes: Fix return value if register_kretprobe() failed
scripts modpost: fix undefined behavior of is_arm_mapping_symbol()
security Fix incorrect type in assignment of ipv6 port for audit
sound ALSA: hda/conexant - Fix loopback issue with CX20632
tools perf c2c: Fix sorting in percent_rmt_hitm_cmp()
usr initramfs: restore default compression behavior
virt KVM: Prevent module exit until all VMs are freed
.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.