mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 14:42:24 +00:00
ALSA: asihpi: testing the wrong variable
There is a typo here. We want to test "*dst" not "dst". Signed-off-by: Dan Carpenter <error27@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
b0fb75ad5c
commit
2448b14715
@ -3279,7 +3279,7 @@ static u16 hpi_entity_alloc_and_copy(struct hpi_entity *src,
|
||||
|
||||
buf_size = hpi_entity_size(src);
|
||||
*dst = kmalloc(buf_size, GFP_KERNEL);
|
||||
if (dst == NULL)
|
||||
if (*dst == NULL)
|
||||
return HPI_ERROR_MEMORY_ALLOC;
|
||||
memcpy(*dst, src, buf_size);
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user