mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
serial: crisv10: fix invalid user-pointer check
Drop invalid user-pointer check from TIOCGSERIAL handler. A NULL-pointer can be valid in user space and copy_to_user() takes care of sanity checking. Cc: Mikael Starvik <[email protected]> Cc: [email protected] Signed-off-by: Johan Hovold <[email protected]> Acked-by: Jesper Nilsson <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
7a3f09846c
commit
68832b20c9
1 changed files with 0 additions and 2 deletions
|
|
@ -3213,8 +3213,6 @@ get_serial_info(struct e100_serial * info,
|
|||
* should set them to something else than 0.
|
||||
*/
|
||||
|
||||
if (!retinfo)
|
||||
return -EFAULT;
|
||||
memset(&tmp, 0, sizeof(tmp));
|
||||
tmp.type = info->type;
|
||||
tmp.line = info->line;
|
||||
|
|
|
|||
Loading…
Reference in a new issue