projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b0fb75a
)
ALSA: asihpi: testing the wrong variable
author
Dan Carpenter
<error27@gmail.com>
Fri, 14 May 2010 14:49:20 +0000
(16:49 +0200)
committer
Takashi Iwai
<tiwai@suse.de>
Mon, 17 May 2010 06:10:13 +0000
(08:10 +0200)
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>
sound/pci/asihpi/hpifunc.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/pci/asihpi/hpifunc.c
b/sound/pci/asihpi/hpifunc.c
index 254c580db639dd887b75b2f15d992c49ba7b443f..15f0c7ea0e52f68b6446e84bb1b5afa6cfd96626 100644
(file)
--- 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;