]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ALSA: maestro3: using vmalloc_array() to handle the code
authortanze <tanze@kylinos.cn>
Fri, 24 Oct 2025 10:55:49 +0000 (18:55 +0800)
committerTakashi Iwai <tiwai@suse.de>
Mon, 27 Oct 2025 09:04:51 +0000 (10:04 +0100)
commita0deef0ed594a1e1a81a2bab13b7eb115cd59de6
tree681aae16b57eb160fbdee557b3c0bdb59ca5872f
parent28bcb2169693d6e02642c45ddc3ca63cd8a4e1f2
ALSA: maestro3: using vmalloc_array() to handle the code

Change array_size() to vmalloc_array(), due to vmalloc_array()
being optimized better, using fewer instructions, and handles
overflow more concisely.

Signed-off-by: tanze <tanze@kylinos.cn>
Link: https://patch.msgid.link/20251024105549.210654-1-tanze@kylinos.cn
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/maestro3.c