summaryrefslogtreecommitdiffstats
path: root/include/linux/platform_data
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2021-03-03 09:58:26 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-03-10 09:37:16 +0100
commitb0bf77cd389d12f61d1d79aa54e1ec03b68a8a11 (patch)
tree249e118bae6b1b117fd8fafb7a4b6fbdde36d35b /include/linux/platform_data
parent92d1e87e627a6e5c9c5111adb95b6eae8df124c7 (diff)
downloadcachepc-linux-b0bf77cd389d12f61d1d79aa54e1ec03b68a8a11.tar.gz
cachepc-linux-b0bf77cd389d12f61d1d79aa54e1ec03b68a8a11.zip
usb: dwc3: Fix dereferencing of null dwc->usb_psy
Currently the null check logic on dwc->usb_psy is inverted as it allows calls to power_supply_put with a null dwc->usb_psy causing a null pointer dereference. Fix this by removing the ! operator. Addresses-Coverity: ("Dereference after null check") Fixes: 59fa3def35de ("usb: dwc3: add a power supply for current control") Signed-off-by: Colin Ian King <colin.king@canonical.com> Link: https://lore.kernel.org/r/20210303095826.6143-1-colin.king@canonical.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/platform_data')
0 files changed, 0 insertions, 0 deletions