Commit 3d1def82 authored by Randy Dunlap's avatar Randy Dunlap Committed by Linus Torvalds

[PATCH] janitor: Audit copy_to_user (ttusb)

From: Daniele <bellucda@tiscali.it>

- Audit copy_to_user in drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c
parent b39602a6
......@@ -1055,7 +1055,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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment