summaryrefslogtreecommitdiffstats
path: root/block/blk-integrity.c
diff options
context:
space:
mode:
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>2019-06-12 17:15:40 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-06-12 17:13:02 +0200
commit5f54a85db5df67df8161739a4b2f9c2b7ab219fe (patch)
tree527ddbb225b264ec03b33217e0c89b67c4bab33f /block/blk-integrity.c
parentc2ed3d474fac61ab46468c5365f84f59dc6e173f (diff)
downloadlinux-5f54a85db5df67df8161739a4b2f9c2b7ab219fe.tar.bz2
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. Reported-by: Vladimir Yerilov <openmindead@gmail.com> Fixes: ad74b8649bea ("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>
Diffstat (limited to 'block/blk-integrity.c')
0 files changed, 0 insertions, 0 deletions