summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2012-09-11 14:12:43 +0300
committerTakashi Iwai <tiwai@suse.de>2012-09-11 14:27:40 +0200
commit81cb324675eec592ab8f3038f980c074fbf7fb9b (patch)
tree01609ce28354864ee3ce1fb2cc16772f91d495e5 /firmware
parent07dc59f0988cb54fd87bd373b3b27eb2401dd811 (diff)
downloadlinux-3.10-81cb324675eec592ab8f3038f980c074fbf7fb9b.tar.gz
linux-3.10-81cb324675eec592ab8f3038f980c074fbf7fb9b.tar.bz2
linux-3.10-81cb324675eec592ab8f3038f980c074fbf7fb9b.zip
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 <dan.carpenter@oracle.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'firmware')
0 files changed, 0 insertions, 0 deletions