]> git.hungrycats.org Git - linux/commit
ALSA: core: Mark some variables as __ro_after_init
authorLen Bao <len.bao@gmx.us>
Sun, 24 May 2026 16:29:13 +0000 (16:29 +0000)
committerTakashi Iwai <tiwai@suse.de>
Mon, 25 May 2026 07:31:40 +0000 (09:31 +0200)
commit055cda1d47960c32e04dcb5d163e4fda7175632e
treeddfcbc3fa4d8e26e0b18f4a43a26e31e04b08fb3
parent177be86ecc0185595badb2150e97810bb76ddeb2
ALSA: core: Mark some variables as __ro_after_init

Some variables in the 'ALSA/core' are initialized only during the init
phase in the '__init' functions and never changed. So, mark them as
__ro_after_init to reduce the attack surface.

Signed-off-by: Len Bao <len.bao@gmx.us>
Link: https://patch.msgid.link/20260524162914.47764-1-len.bao@gmx.us
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/hrtimer.c
sound/core/oss/pcm_oss.c
sound/core/rawmidi.c
sound/core/seq/oss/seq_oss_init.c
sound/core/seq/seq_dummy.c