ALSA: asihpi - Clarify adapter index validity check
authorEliot Blennerhassett <eblennerhassett@audioscience.com>
Mon, 1 Aug 2011 21:44:24 +0000 (09:44 +1200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 2 Aug 2011 07:26:31 +0000 (09:26 +0200)
commit08f984c7f7f569b66acbbd163676b4bc7f64addc
tree333d7e308511ba0a3f47c9129a065f3603a52772
parentdc889f18646325d07eb24ef634f082d60b0beebb
ALSA: asihpi - Clarify adapter index validity check

Avoids assigning possibly invalid address to pa, even if it
is never dereferenced.
Correct error response to reflect request object/function ids.

Signed-off-by: Eliot Blennerhassett <eblennerhassett@audioscience.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/asihpi/hpioctl.c