aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-cmp.c
diff options
context:
space:
mode:
authorThierry Reding <[email protected]>2019-02-20 14:48:41 +0100
committerGreg Kroah-Hartman <[email protected]>2019-02-20 17:55:04 +0100
commit0326ccb5feac6eac35ba6254260e2774277cd976 (patch)
tree60f3db9ca8a5bd894e6ee51d5c4a47e467cab2c5 /lib/mpi/mpi-cmp.c
parent79595a734a68f768774d3e9ad6b5ad994413c578 (diff)
xhci: tegra: Prevent error pointer dereference
During initialization, the host and super-speed power domains will contain an ERR_PTR() encoded error code rather than being NULL. To avoid a crash, use a !IS_ERR_OR_NULL() condition during cleanup. Signed-off-by: Thierry Reding <[email protected]> Fixes: 6494a9ad86de ("usb: xhci: tegra: Add genpd support") Cc: stable <[email protected]> Reviewed-by: Jon Hunter <[email protected]> Acked-by: Mathias Nyman <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-cmp.c')
0 files changed, 0 insertions, 0 deletions