Thread (5 messages) 5 messages, 5 authors, 2019-09-08

Re: [PATCH] iio: adc: meson_saradc: Fix memory allocation order

From: Kevin Hilman <khilman@baylibre.com>
Date: 2019-09-05 00:02:34
Also in: linux-amlogic, linux-iio, lkml

Remi Pommarel [off-list ref] writes:
meson_saradc's irq handler uses priv->regmap so make sure that it is
allocated before the irq get enabled.

This also fixes crash when CONFIG_DEBUG_SHIRQ is enabled, as device
managed resources are freed in the inverted order they had been
allocated, priv->regmap was freed before the spurious fake irq that
CONFIG_DEBUG_SHIRQ adds called the handler.

Reported-by: Elie Roudninski <redacted>
Signed-off-by: Remi Pommarel <redacted>
Reviewed-by: Kevin Hilman <khilman@baylibre.com>

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help