diff options
| -rw-r--r-- | sound/pci/asihpi/hpifunc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/asihpi/hpifunc.c b/sound/pci/asihpi/hpifunc.c index 254c580db639..15f0c7ea0e52 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, | |||
| 3279 | 3279 | ||
| 3280 | buf_size = hpi_entity_size(src); | 3280 | buf_size = hpi_entity_size(src); |
| 3281 | *dst = kmalloc(buf_size, GFP_KERNEL); | 3281 | *dst = kmalloc(buf_size, GFP_KERNEL); |
| 3282 | if (dst == NULL) | 3282 | if (*dst == NULL) |
| 3283 | return HPI_ERROR_MEMORY_ALLOC; | 3283 | return HPI_ERROR_MEMORY_ALLOC; |
| 3284 | memcpy(*dst, src, buf_size); | 3284 | memcpy(*dst, src, buf_size); |
| 3285 | return 0; | 3285 | return 0; |
