mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-14 05:55:17 +00:00
[media] ene-ir: Fix cleanup on probe failure
This makes the cleanup on probe failure more consistent with other drivers. This is similar to what commitf27b853ea2("[media] rc: Fix invalid free_region and/or free_irq on probe failure") did for some other drivers. In addition to making the cleanup more consistent, this also fixes a case where (on a ene_hw_detect failure) free_region would be called on a region that was not requested yet. This last problem was probably introduced by the moving of code in commitb31b021988("[media] ene_ir: Fix driver initialisation") and commit9ef449c6b3("[media] rc: Postpone ISR registration"). Signed-off-by: Matthijs Kooijman <matthijs@stdin.nl> Cc: Maxim Levitsky <maximlevitsky@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
895507c19f
commit
56411c0f1e
1 changed files with 13 additions and 16 deletions
Loading…
Add table
Add a link
Reference in a new issue