android_kernel_sony_sdm845/drivers/platform/goldfish
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Thomas Gleixner e6bdd8d2ff goldfish: Sanitize the broken interrupt handler
commit 6cf18e6927c0b224f972e3042fb85770d63cb9f8 upstream.

This interrupt handler is broken in several ways:

  - It loops forever when the op code is not decodeable

  - It never returns IRQ_HANDLED because the only way to exit the loop
    returns IRQ_NONE unconditionally.

The whole concept of this is broken. Creating devices in an interrupt
handler is beyond any point of sanity.

Make it at least behave halfways sane so accidental users do not have to
deal with a hard to debug lockup.

Fixes: e809c22b8f ("goldfish: add the goldfish virtual bus")
Reported-by: Gabriel C <nix.or.die@gmail.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-02-26 11:10:52 +01:00
..
goldfish_pipe.c mm: replace get_user_pages() write/force parameters with gup_flags 2016-10-19 08:11:43 -07:00
Kconfig goldfish: Fix build error of missing ioremap on UM 2016-03-05 12:33:58 -08:00
Makefile goldfish: refactor goldfish platform configs 2016-01-28 23:34:36 -08:00
pdev_bus.c goldfish: Sanitize the broken interrupt handler 2017-02-26 11:10:52 +01:00