Commit 16315ada authored by William Stinson's avatar William Stinson Committed by Jeff Garzik

[janitor] check copy_from_user return val in e100 net driver

parent 74328596
......@@ -257,7 +257,8 @@ write_blink_led_timer(struct file *file, const char *buffer,
if (count > WRITE_BUF_MAX_LEN) {
count = WRITE_BUF_MAX_LEN;
}
copy_from_user(s_blink_op, buffer, count);
if (copy_from_user(s_blink_op, buffer, count))
return -EFAULT;
s_blink_op[count] = '\0';
i_blink_op = simple_strtoul(s_blink_op, &res, 0);
if (res == s_blink_op) {
......
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