Skip to content

Commit 4cbc7d9

Browse files
committed
ALSA: sb: Fix wrong argument in commented code
While rewriting the code from sockptr_t to iov_iter during the development, I forgot to replace one place in emu8000-pcm code. As it's in the disabled area (with ifdef), it's never built and overlooked. Replace with the proper argument NULL. Fixes: 9d0fdc6 ("ALSA: emu8000: Convert to generic PCM copy ops") Reported-by: Al Viro <viro@zeniv.linux.org.uk> Closes: https://lore.kernel.org/r/20230902053646.GK3390869@ZenIV Link: https://lore.kernel.org/r/20230902061044.19366-2-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent e14ebde commit 4cbc7d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/isa/sb/emu8000_pcm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ static int emu8k_pcm_silence(struct snd_pcm_substream *subs,
456456
/* convert to word unit */
457457
pos = (pos << 1) + rec->loop_start[voice];
458458
count <<= 1;
459-
LOOP_WRITE(rec, pos, USER_SOCKPTR(NULL), count);
459+
LOOP_WRITE(rec, pos, NULL, count);
460460
return 0;
461461
}
462462

0 commit comments

Comments
 (0)