Skip to content

Commit

Permalink
ALSA: asihpi: testing the wrong variable
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dan Carpenter authored and Takashi Iwai committed May 17, 2010
1 parent b0fb75a commit 2448b14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/pci/asihpi/hpifunc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2448b14

Please sign in to comment.