summaryrefslogtreecommitdiff
path: root/mm/tests/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorStepan Ionichev <sozdayvek@gmail.com>2026-05-11 08:27:03 +0500
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2026-06-23 00:13:35 +0200
commita369f48be8de426a7d2bca18dbd46c2ad1138803 (patch)
treed537fbeb395ee71d0d765a4f2164c6ff22eaea09 /mm/tests/git@git.tavy.me:linux.git
parenta50b23a57fce4157156014bc00b0cf9f4ab1a69f (diff)
rtc: msc313: fix NULL deref in shared IRQ handler at probe
msc313_rtc_probe() calls devm_request_irq() with IRQF_SHARED and &pdev->dev as the cookie, but platform_set_drvdata() is only called later after the clock setup. With a shared IRQ line, another device on the same line can trigger the handler in that window. The handler does dev_get_drvdata() on the cookie, gets NULL, and dereferences priv->rtc_base in interrupt context. Pass priv as the cookie directly so the handler reads it from dev_id without the lookup, removing the dependency on probe order. Fixes: be7d9c9161b9 ("rtc: Add support for the MSTAR MSC313 RTC") Signed-off-by: Stepan Ionichev <sozdayvek@gmail.com> Link: https://patch.msgid.link/20260511032703.48262-1-sozdayvek@gmail.com Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'mm/tests/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions