Commit 43b42ed4 authored by Takashi Iwai's avatar Takashi Iwai

ALSA: pcm: Fix the previous conversion to kstrtoul()

The previous replacement from simple_strtoul() to kstrtoul() forgot
that the passed pointer must be an unsigned long int pointer, while
the value used there is a sized_t pointer.  Fix it.

Fixes: 61bc4def ("ALSA: pcm: replace simple_strtoul to kstrtoul")
Reported-by: default avatarkernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202409010425.YPS7cWeJ-lkp@intel.com/
Link: https://patch.msgid.link/20240901134524.27107-1-tiwai@suse.deSigned-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 61bc4def
...@@ -183,7 +183,7 @@ static void snd_pcm_lib_preallocate_proc_write(struct snd_info_entry *entry, ...@@ -183,7 +183,7 @@ static void snd_pcm_lib_preallocate_proc_write(struct snd_info_entry *entry,
struct snd_pcm_substream *substream = entry->private_data; struct snd_pcm_substream *substream = entry->private_data;
struct snd_card *card = substream->pcm->card; struct snd_card *card = substream->pcm->card;
char line[64], str[64]; char line[64], str[64];
size_t size; unsigned long size;
struct snd_dma_buffer new_dmab; struct snd_dma_buffer new_dmab;
guard(mutex)(&substream->pcm->open_mutex); guard(mutex)(&substream->pcm->open_mutex);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment