No description
Find a file
Enrico Granata a357310a57 platform/chrome: cros_ec_proto: check for NULL transfer function
[ Upstream commit 94d4e7af14 ]

As new transfer mechanisms are added to the EC codebase, they may
not support v2 of the EC protocol.

If the v3 initial handshake transfer fails, the kernel will try
and call cmd_xfer as a fallback. If v2 is not supported, cmd_xfer
will be NULL, and the code will end up causing a kernel panic.

Add a check for NULL before calling the transfer function, along
with a helpful comment explaining how one might end up in this
situation.

Signed-off-by: Enrico Granata <egranata@chromium.org>
Reviewed-by: Jett Rink <jettrink@chromium.org>
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-06-15 11:54:08 +02:00
arch x86/PCI: Fix PCI IRQ routing table memory leak 2019-06-15 11:54:07 +02:00
block blk-mq: move cancel of requeue_work into blk_mq_release 2019-06-15 11:54:06 +02:00
certs
crypto
Documentation
drivers platform/chrome: cros_ec_proto: check for NULL transfer function 2019-06-15 11:54:08 +02:00
firmware
fs nfsd: avoid uninitialized variable warning 2019-06-15 11:54:07 +02:00
include
init
ipc
kernel ntp: Allow TAI-UTC offset to be set to zero 2019-06-15 11:54:04 +02:00
lib
LICENSES
mm percpu: remove spurious lock dependency between percpu and sched 2019-06-15 11:54:05 +02:00
net netfilter: nf_flow_table: fix netdev refcnt leak 2019-06-15 11:54:06 +02:00
samples
scripts
security
sound ALSA: hda - Register irq handler after the chip initialization 2019-06-15 11:54:06 +02:00
tools objtool: Don't use ignore flag for fake jumps 2019-06-15 11:54:03 +02:00
usr
virt
.clang-format
.cocciconfig
.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.