diff options
author | Axel Lin <axel.lin@gmail.com> | 2010-07-28 16:58:42 +0800 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2010-07-28 11:53:03 +0200 |
commit | 63818c448ac6f4dd75aa42997acaa746f86acb6b (patch) | |
tree | 7610b4310f3b0e6dd0fc1789f7d1944bd22f6071 /sound | |
parent | 7899f81fe4aa76b7ff26293f9ef670b3d53e58aa (diff) | |
download | linux-3.10-63818c448ac6f4dd75aa42997acaa746f86acb6b.tar.gz linux-3.10-63818c448ac6f4dd75aa42997acaa746f86acb6b.tar.bz2 linux-3.10-63818c448ac6f4dd75aa42997acaa746f86acb6b.zip |
ALSA: hpimsgx: fix wrong sizeof
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>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/pci/asihpi/hpimsgx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/asihpi/hpimsgx.c b/sound/pci/asihpi/hpimsgx.c index 2ee90dc3d89..f01ab964f60 100644 --- a/sound/pci/asihpi/hpimsgx.c +++ b/sound/pci/asihpi/hpimsgx.c @@ -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++) { |