We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b5d696 commit a17f93aCopy full SHA for a17f93a
sound/soc/samsung/idma.c
@@ -360,6 +360,8 @@ static int preallocate_idma_buffer(struct snd_pcm *pcm, int stream)
360
buf->addr = idma.lp_tx_addr;
361
buf->bytes = idma_hardware.buffer_bytes_max;
362
buf->area = (unsigned char * __force)ioremap(buf->addr, buf->bytes);
363
+ if (!buf->area)
364
+ return -ENOMEM;
365
366
return 0;
367
}
0 commit comments