Data type of return value is unsigned int, but in function of dvb_demux_poll,
when the pointer of dmxdevfilter equals NULL, it will return -EINVAL, which
is invalid.

Signed-off-by: Changbing Xiong <cb.xi...@samsung.com>
---
 drivers/media/dvb-core/dmxdev.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 mode change 100644 => 100755 drivers/media/dvb-core/dmxdev.c

diff --git a/drivers/media/dvb-core/dmxdev.c b/drivers/media/dvb-core/dmxdev.c
old mode 100644
new mode 100755
index c0363f1..7a5c070
--- a/drivers/media/dvb-core/dmxdev.c
+++ b/drivers/media/dvb-core/dmxdev.c
@@ -1088,7 +1088,7 @@ static unsigned int dvb_demux_poll(struct file *file, 
poll_table *wait)
        unsigned int mask = 0;

        if (!dmxdevfilter)
-               return -EINVAL;
+               return POLLERR;

        poll_wait(file, &dmxdevfilter->buffer.queue, wait);

--
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to