Commit 4a3d1910 authored by Dave Jones's avatar Dave Jones Committed by Linus Torvalds

[PATCH] copy_to_user check for sgiserial

parent 1daf33ad
...@@ -1232,7 +1232,7 @@ static int get_serial_info(struct sgi_serial * info, ...@@ -1232,7 +1232,7 @@ static int get_serial_info(struct sgi_serial * info,
tmp.close_delay = info->close_delay; tmp.close_delay = info->close_delay;
tmp.closing_wait = info->closing_wait; tmp.closing_wait = info->closing_wait;
tmp.custom_divisor = info->custom_divisor; tmp.custom_divisor = info->custom_divisor;
return copy_to_user(retinfo,&tmp,sizeof(*retinfo)); return copy_to_user(retinfo,&tmp,sizeof(*retinfo)) ? -EFAULT : 0;
} }
static int set_serial_info(struct sgi_serial * info, static int set_serial_info(struct sgi_serial * info,
......
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