aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/cyclades.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2012-03-05 13:07:11 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-03-08 14:02:51 -0500
commitdbca36eab48ee48dfc60b8f41ffad54160ebdd09 (patch)
tree100469e0a9ccd81eee9b234a0799c4a383f063e4 /drivers/tty/cyclades.c
parenta5f43138da9beddc46b00ec31d167143a7176683 (diff)
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>
Diffstat (limited to 'drivers/tty/cyclades.c')
-rw-r--r--drivers/tty/cyclades.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/cyclades.c b/drivers/tty/cyclades.c
index c9bf779481d8..5575fee7a55e 100644
--- a/drivers/tty/cyclades.c
+++ b/drivers/tty/cyclades.c
@@ -2413,7 +2413,7 @@ static int get_lsr_info(struct cyclades_port *info, unsigned int __user *value)
2413 /* Not supported yet */ 2413 /* Not supported yet */
2414 return -EINVAL; 2414 return -EINVAL;
2415 } 2415 }
2416 return put_user(result, (unsigned long __user *)value); 2416 return put_user(result, value);
2417} 2417}
2418 2418
2419static int cy_tiocmget(struct tty_struct *tty) 2419static int cy_tiocmget(struct tty_struct *tty)