Skip to content

Commit

Permalink
ALSA: hpimsgx: fix wrong sizeof
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Axel Lin authored and Takashi Iwai committed Jul 28, 2010
1 parent 7899f81 commit 63818c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/pci/asihpi/hpimsgx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {

Expand Down

0 comments on commit 63818c4

Please sign in to comment.