mirror of
https://github.com/torvalds/linux.git
synced 2026-09-19 09:08:02 +02:00
If secocec_ir_probe() fails after cec_register_adapter() succeeds,
probe returns an error and the driver remove callback is not called.
The current unwind path unregisters the notifier and then falls through
to cec_delete_adapter(), which violates the CEC adapter lifetime rules
after a successful registration.
Add a registered-adapter unwind path that unregisters the notifier and
the adapter instead.
Fixes:
|
||
|---|---|---|
| .. | ||
| Makefile | ||
| seco-cec.c | ||
| seco-cec.h | ||