From: Dan Carpenter Date: Tue, 11 Sep 2012 11:12:43 +0000 (+0300) Subject: ALSA: compress_core: fix open flags test in snd_compr_open() X-Git-Tag: v3.6-rc6~24^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=81cb324675eec592ab8f3038f980c074fbf7fb9b;p=pandora-kernel.git ALSA: compress_core: fix open flags test in snd_compr_open() O_RDONLY is zero so the original test (f->f_flags & O_RDONLY) is always false and it will never do compress capture. The test for O_WRONLY is also slightly off. The original test would consider "->flags = (O_WRONLY | O_RDWR)" as write only instead of rejecting it as invalid. I've also removed the pr_err() because that could flood dmesg. Signed-off-by: Dan Carpenter Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed