Skip to content

Commit

Permalink
ALSA: asihpi - Fix imbalanced lock path in hw_message
Browse files Browse the repository at this point in the history
Signed-off-by: Eliot Blennerhassett <eblennerhassett@audioscience.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Eliot Blennerhassett authored and Takashi Iwai committed May 27, 2010
1 parent 70ebe64 commit bca516b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sound/pci/asihpi/hpi6000.c
Original file line number Diff line number Diff line change
Expand Up @@ -1772,7 +1772,6 @@ static void hw_message(struct hpi_adapter_obj *pao, struct hpi_message *phm,
u16 error = 0;
u16 dsp_index = 0;
u16 num_dsp = ((struct hpi_hw_obj *)pao->priv)->num_dsp;
hpios_dsplock_lock(pao);

if (num_dsp < 2)
dsp_index = 0;
Expand All @@ -1793,6 +1792,8 @@ static void hw_message(struct hpi_adapter_obj *pao, struct hpi_message *phm,
}
}
}

hpios_dsplock_lock(pao);
error = hpi6000_message_response_sequence(pao, dsp_index, phm, phr);

/* maybe an error response */
Expand Down

0 comments on commit bca516b

Please sign in to comment.