mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 17:30:02 +00:00
tty: cyclades: TIOCSERGETLSR should should store to a uint
TIOCSERGETLSR should be saved in a uint so the cast here to unsigned long is a bug. Reported-by: Jiri Slaby <jslaby@suse.cz> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Acked-by: Jiri Slaby <jslaby@suse.cz> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
a5f43138da
commit
dbca36eab4
1 changed files with 1 additions and 1 deletions
|
@ -2413,7 +2413,7 @@ static int get_lsr_info(struct cyclades_port *info, unsigned int __user *value)
|
|||
/* Not supported yet */
|
||||
return -EINVAL;
|
||||
}
|
||||
return put_user(result, (unsigned long __user *)value);
|
||||
return put_user(result, value);
|
||||
}
|
||||
|
||||
static int cy_tiocmget(struct tty_struct *tty)
|
||||
|
|
Loading…
Reference in a new issue