Heikki Krogerus 0ce7fd9f18 UPSTREAM: usb: typec: Make sure an alt mode exist before getting its partner
Adding check to typec_altmode_get_partner() to prevent
potential NULL pointer dereference.

Bug: 150877929
Reported-by: Vladimir Yerilov <openmindead@gmail.com>
Fixes: ad74b8649b ("usb: typec: ucsi: Preliminary support for alternate modes")
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Change-Id: I600cfd688ed936e45f45aad409d3b166664038d4
Signed-off-by: Will McVicker <willmcvicker@google.com>
(cherry picked from commit 5f54a85db5)
2020-03-12 14:22:55 -07:00
2020-03-03 07:33:01 +01:00
2020-03-11 17:10:39 +01:00
2020-02-24 09:13:25 +01:00
2020-03-11 17:10:39 +01:00
2020-03-11 17:10:39 +01:00
2020-03-12 18:16:41 +00:00
2020-03-03 07:33:01 +01:00
2020-03-11 17:10:39 +01:00

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.
Description
No description provided
Readme 7.9 GiB
Languages
C 97.7%
Assembly 1.6%
Makefile 0.3%
Perl 0.1%