mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
ALSA: compress: Pass through return value of open ops callback
The snd_compr_open function would always return 0 even if the compressed
ops open function failed, obviously this is incorrect. Looks like this
was introduced by a small typo in:
commit a0830dbd4e
ALSA: Add a reference counter to card instance
This patch returns the value from the compressed op as it should.
Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Acked-by: Vinod Koul <vinod.koul@intel.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
305564413c
commit
749d32237b
1 changed files with 1 additions and 1 deletions
|
@ -133,7 +133,7 @@ static int snd_compr_open(struct inode *inode, struct file *f)
|
||||||
kfree(data);
|
kfree(data);
|
||||||
}
|
}
|
||||||
snd_card_unref(compr->card);
|
snd_card_unref(compr->card);
|
||||||
return 0;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int snd_compr_free(struct inode *inode, struct file *f)
|
static int snd_compr_free(struct inode *inode, struct file *f)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue