ALSA: hpimsgx: fix wrong sizeof
authorAxel Lin <axel.lin@gmail.com>
Wed, 28 Jul 2010 08:58:42 +0000 (16:58 +0800)
committerTakashi Iwai <tiwai@suse.de>
Wed, 28 Jul 2010 09:53:03 +0000 (11:53 +0200)
The correct size should be sizeof(gRESP_HPI_SUBSYS_FIND_ADAPTERS),
sizeof(&gRESP_HPI_SUBSYS_FIND_ADAPTERS) is incorrect.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/asihpi/hpimsgx.c

index 2ee90dc..f01ab96 100644 (file)
@@ -741,7 +741,7 @@ static void HPIMSGX__reset(u16 adapter_index)
                hpi_init_response(&hr, HPI_OBJ_SUBSYSTEM,
                        HPI_SUBSYS_FIND_ADAPTERS, 0);
                memcpy(&gRESP_HPI_SUBSYS_FIND_ADAPTERS, &hr,
-                       sizeof(&gRESP_HPI_SUBSYS_FIND_ADAPTERS));
+                       sizeof(gRESP_HPI_SUBSYS_FIND_ADAPTERS));
 
                for (adapter = 0; adapter < HPI_MAX_ADAPTERS; adapter++) {