Skip to content

Commit

Permalink
tty: cyclades: TIOCSERGETLSR should should store to a uint
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dan Carpenter authored and gregkh committed Mar 8, 2012
1 parent a5f4313 commit dbca36e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/tty/cyclades.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit dbca36e

Please sign in to comment.