From 26aa7ec6645f513af1a46ad7116162b75b6e72f2 Mon Sep 17 00:00:00 2001 From: Dan Carpenter Date: Fri, 14 May 2010 16:49:20 +0200 Subject: [PATCH] --- yaml --- r: 193251 b: refs/heads/master c: 2448b14715bc83d75ed779452fe89285df4d772a h: refs/heads/master i: 193249: ffef1c39dded2d4262f2d2d71a22200882daafd3 193247: e99fa02dfae90e2fc73fd168ad927cccde3d8818 v: v3 --- [refs] | 2 +- trunk/sound/pci/asihpi/hpifunc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index a171f54ff4d5..422b879075da 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: b0fb75ad5c8ca205396d7a493c9be5a5da802747 +refs/heads/master: 2448b14715bc83d75ed779452fe89285df4d772a diff --git a/trunk/sound/pci/asihpi/hpifunc.c b/trunk/sound/pci/asihpi/hpifunc.c index 254c580db639..15f0c7ea0e52 100644 --- a/trunk/sound/pci/asihpi/hpifunc.c +++ b/trunk/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;