[media] vb2: fix wrong owner check
authorHans Verkuil <hans.verkuil@cisco.com>
Fri, 7 Sep 2012 15:50:02 +0000 (12:50 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 26 Sep 2012 18:44:11 +0000 (15:44 -0300)
commit8c82c75c3950dea31fe03567125feea089893141
tree7338abe2b7cf88a5659f66efe36220147e32e8a7
parentd2210f9e2e269975db413b8fe4de2f07e6a09b05
[media] vb2: fix wrong owner check

Check against q->fileio to see if the queue owner should be set or not.
The former check against the return value of read or write is wrong, since
read/write can return an error, even if the queue is in streaming mode.
For example, EAGAIN when in non-blocking mode.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/v4l2-core/videobuf2-core.c