diff options
author | Colin Ian King <colin.king@canonical.com> | 2017-10-11 12:09:57 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-10-17 12:56:12 +0300 |
commit | 707a123d7affbf1e98f08d1962d81a0d64f83191 (patch) | |
tree | 70ac94a4ecfcf46408d71b520dd26c64a0be38a7 /drivers/usb/host/xhci.h | |
parent | a6d5d230e0c2dbc710d473105d5652d3980da673 (diff) | |
download | linux-707a123d7affbf1e98f08d1962d81a0d64f83191.tar.xz |
usb: typec: wcove: fix uninitialized usbc_irq1 and usbc_irq2
Calls to regmap_read may fail with an -EINVAL return without setting
usbc_irq1 and usbc_irq2. The error handling clean up expects these
to have been set (or zero on a failure) and currently may try to
clear the wrong IRQs if the uninitalized garbage values in usbc_irq1
or usbc_irq2 are non-zero. The simplest fix is to ensure these
variables are initialized to zero.
Detected by CoverityScan, CID#1457737 ("Uninitialized scalar variable")
Fixes: 3c4fb9f16921 ("usb: typec: wcove: start using tcpm for USB PD support")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host/xhci.h')
0 files changed, 0 insertions, 0 deletions