projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a0af6e
)
[media] media: correct return value in dvb_demux_poll
author
Changbing Xiong
<cb.xiong@samsung.com>
Thu, 21 Aug 2014 02:05:07 +0000
(23:05 -0300)
committer
Mauro Carvalho Chehab
<m.chehab@samsung.com>
Tue, 2 Sep 2014 14:49:00 +0000
(11:49 -0300)
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>
drivers/media/dvb-core/dmxdev.c
patch
|
blob
|
history
diff --git
a/drivers/media/dvb-core/dmxdev.c
b/drivers/media/dvb-core/dmxdev.c
index c0363f1b6c90e06c34409766e4a69c56fb98164f..7a5c07003c415299956d2e3e3fb95cadc8448f22 100644
(file)
--- 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);