mirror of
https://github.com/DigitalDevices/dddvb.git
synced 2023-10-10 13:37:43 +02:00
return EINVAL if input NULL (e.g. in case of mod devices)
This commit is contained in:
parent
aa2762747f
commit
e4acb524a7
@ -857,6 +857,8 @@ static ssize_t ts_read(struct file *file, __user char *buf,
|
||||
|
||||
if (!dev->has_dma)
|
||||
return -EINVAL;
|
||||
if (!input)
|
||||
return -EINVAL;
|
||||
while (left) {
|
||||
if (ddb_input_avail(input) < 188) {
|
||||
if (file->f_flags & O_NONBLOCK)
|
||||
|
Loading…
Reference in New Issue
Block a user