diff options
author | Jens Axboe <[email protected]> | 2022-02-15 11:22:04 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2022-02-17 16:02:27 +0100 |
commit | aba2081e0a9c977396124aa6df93b55ed5912b19 (patch) | |
tree | 505c02b7dd864f7701f6664358d93ed88828d7dc /net/lapb/lapb_iface.c | |
parent | 243a1dd7ba48c120986dd9e66fee74bcb7751034 (diff) |
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 <[email protected]>
Cc: stable <[email protected]>
Reviewed-by: Heikki Krogerus <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions