Skip to content
Commit d2739385 authored by Finn Thain's avatar Finn Thain Committed by felix
Browse files

macintosh/via-macii: Fix "BUG: sleeping function called from invalid context"

stable inclusion
from stable-v4.19.316
commit e4ff8bcfb2841fe4e17e5901578b632adb89036d
category: bugfix
bugzilla: https://gitee.com/src-openeuler/kernel/issues/IA6SHU
CVE: CVE-2024-38607

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=e4ff8bcfb2841fe4e17e5901578b632adb89036d



--------------------------------

[ Upstream commit d301a71c76ee4c384b4e03cdc320a55f5cf1df05 ]

The via-macii ADB driver calls request_irq() after disabling hard
interrupts. But disabling interrupts isn't necessary here because the
VIA shift register interrupt was masked during VIA1 initialization.

Fixes: 1da177e4 ("Linux-2.6.12-rc2")
Signed-off-by: default avatarFinn Thain <fthain@linux-m68k.org>
Reviewed-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Link: https://lore.kernel.org/r/419fcc09d0e563b425c419053d02236b044d86b0.1710298421.git.fthain@linux-m68k.org


Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>

Conflicts:
    drivers/macintosh/via-macii.c
[Fix context, beacause 47fd2060 not merged]
Signed-off-by: default avatarFelix Fu <fuzhen5@huawei.com>
parent 1db6f4df
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment