Skip to content

Commit 749d322

Browse files
charleskeepaxtiwai
authored andcommitted
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 a0830db 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>
1 parent 3055644 commit 749d322

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/core/compress_offload.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ static int snd_compr_open(struct inode *inode, struct file *f)
133133
kfree(data);
134134
}
135135
snd_card_unref(compr->card);
136-
return 0;
136+
return ret;
137137
}
138138

139139
static int snd_compr_free(struct inode *inode, struct file *f)

0 commit comments

Comments
 (0)