summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c
diff options
context:
space:
mode:
Diffstat (limited to 'linux/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c')
-rw-r--r--linux/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/linux/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c b/linux/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c
index 5d2df02a6..0e22927c0 100644
--- a/linux/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c
+++ b/linux/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c
@@ -1056,7 +1056,8 @@ static ssize_t stc_read(struct file *file, char *buf, size_t count,
if (tc < 0)
return 0;
- copy_to_user(buf, stc_firmware + *offset, tc);
+ if (copy_to_user(buf, stc_firmware + *offset, tc))
+ return -EFAULT;
*offset += tc;