summaryrefslogtreecommitdiffstats
path: root/sound/pci/asihpi
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2010-05-14 16:49:20 +0200
committerTakashi Iwai <tiwai@suse.de>2010-05-17 08:10:13 +0200
commit2448b14715bc83d75ed779452fe89285df4d772a (patch)
tree63347c8c6558e5f5c5ba92fb0603c011d9a5225f /sound/pci/asihpi
parentb0fb75ad5c8ca205396d7a493c9be5a5da802747 (diff)
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>
Diffstat (limited to 'sound/pci/asihpi')
-rw-r--r--sound/pci/asihpi/hpifunc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/asihpi/hpifunc.c b/sound/pci/asihpi/hpifunc.c
index 254c580db63..15f0c7ea0e5 100644
--- a/sound/pci/asihpi/hpifunc.c
+++ b/sound/pci/asihpi/hpifunc.c
@@ -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;