diff options
| author | Henrique de Moraes Holschuh <[email protected]> | 2008-07-21 21:18:18 -0300 |
|---|---|---|
| committer | John W. Linville <[email protected]> | 2008-07-29 16:36:32 -0400 |
| commit | 37f55e9d78d1b63047b1b7ae175cdce650547ba8 (patch) | |
| tree | bfbaf636dc086d0cc7b904a3dcbfe44c2e2d7a88 /include/linux/debugobjects.h | |
| parent | 2fd9b2212e25e6411b6f309707f4e2683d164250 (diff) | |
rfkill: fix led-trigger unregister order in error unwind
rfkill needs to unregister the led trigger AFTER a call to
rfkill_remove_switch(), otherwise it will not update the LED state,
possibly leaving it ON when it should be OFF.
To make led-trigger unregistering safer, guard against unregistering a
trigger twice, and also against issuing trigger events to a led trigger
that was unregistered. This makes the error unwind paths more resilient.
Refer to "rfkill: Register LED triggers before registering switch".
Signed-off-by: Henrique de Moraes Holschuh <[email protected]>
Acked-by: Ivo van Doorn <[email protected]>
Cc: Michael Buesch <[email protected]>
Cc: Dmitry Baryshkov <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions