]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: ymfpci: fix PCM open error handling
authorClemens Ladisch <clemens@ladisch.de>
Fri, 16 Sep 2011 20:52:48 +0000 (22:52 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 20 Sep 2011 06:56:34 +0000 (08:56 +0200)
commitb871ac95a47e5d293ff4b6a2ffd26447e92c9f8a
tree0f852edbeb2fe8d9a34dfc068f76ad672b4e53ac
parent74360dbcca555315a2fbd24d85e7884acb6958df
ALSA: ymfpci: fix PCM open error handling

The installation of the minimum period size constraint in the PCM open
callbacks was not checked for errors.  Add this check, and move the call
to the beginning of the function to avoid having to do any cleanups in
the error case.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/ymfpci/ymfpci_main.c