Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2448b147 authored by Dan Carpenter's avatar Dan Carpenter Committed by Takashi Iwai
Browse files

ALSA: asihpi: testing the wrong variable



There is a typo here.  We want to test "*dst" not "dst".

Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent b0fb75ad
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;