diff options
author | 2022-02-15 11:22:04 -0700 | |
---|---|---|
committer | 2022-02-17 16:02:27 +0100 | |
commit | aba2081e0a9c977396124aa6df93b55ed5912b19 (patch) | |
tree | 505c02b7dd864f7701f6664358d93ed88828d7dc /lib/mpi/mpiutil.c | |
parent | xhci: Prevent futile URB re-submissions due to incorrect return value. (diff) | |
download | linux-dev-aba2081e0a9c977396124aa6df93b55ed5912b19.tar.xz linux-dev-aba2081e0a9c977396124aa6df93b55ed5912b19.zip |
tps6598x: clear int mask on probe failure
The interrupt mask is enabled before any potential failure points in
the driver, which can leave a failure path where we exit with
interrupts enabled but the device not live. This causes an infinite
stream of interrupts on an Apple M1 Pro laptop on USB-C.
Add a failure label that's used post enabling interrupts, where we
mask them again before returning an error.
Suggested-by: Sven Peter <sven@svenpeter.dev>
Cc: stable <stable@vger.kernel.org>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Link: https://lore.kernel.org/r/e6b80669-20f3-06e7-9ed5-8951a9c6db6f@kernel.dk
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions