diff options
author | Changbing Xiong <cb.xiong@samsung.com> | 2014-08-20 22:05:07 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-09-02 10:49:00 -0400 |
commit | 236c9bfa4a133cbdfeeb3f7a1902950210549634 (patch) | |
tree | 4ff82450d678c463898c750dff981bc6a312dcdd /drivers/media/dvb-core | |
parent | 7a0af6ed97f2f08baecb452e719d9c961d117109 (diff) |
[media] media: correct return value in dvb_demux_poll
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.xiong@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media/dvb-core')
-rw-r--r-- | drivers/media/dvb-core/dmxdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/dvb-core/dmxdev.c b/drivers/media/dvb-core/dmxdev.c index c0363f1b6c90..7a5c07003c41 100644 --- 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) | |||
1088 | unsigned int mask = 0; | 1088 | unsigned int mask = 0; |
1089 | 1089 | ||
1090 | if (!dmxdevfilter) | 1090 | if (!dmxdevfilter) |
1091 | return -EINVAL; | 1091 | return POLLERR; |
1092 | 1092 | ||
1093 | poll_wait(file, &dmxdevfilter->buffer.queue, wait); | 1093 | poll_wait(file, &dmxdevfilter->buffer.queue, wait); |
1094 | 1094 | ||