Skip to content

Commit dbca36e

Browse files
Dan Carpentergregkh
authored andcommitted
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 <[email protected]> Signed-off-by: Dan Carpenter <[email protected]> Acked-by: Jiri Slaby <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent a5f4313 commit dbca36e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/tty/cyclades.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2413,7 +2413,7 @@ static int get_lsr_info(struct cyclades_port *info, unsigned int __user *value)
24132413
/* Not supported yet */
24142414
return -EINVAL;
24152415
}
2416-
return put_user(result, (unsigned long __user *)value);
2416+
return put_user(result, value);
24172417
}
24182418

24192419
static int cy_tiocmget(struct tty_struct *tty)

0 commit comments

Comments
 (0)