diff options
author | Paul Fulghum <paulkf@microgate.com> | 2006-01-18 20:42:24 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-18 22:20:16 -0500 |
commit | 35fbd397f0ce2addd5ab889bf0bcd95f45837e3e (patch) | |
tree | b1c45201b5e2daaf9341104b9bca6be80eb27f01 /drivers | |
parent | c8d338c8dbc4461a6de1171c2332b8ed547f8f3b (diff) |
[PATCH] synclink_gt fix size of register value storage
Fix incorrect variable size used to hold register value. This bug might
wipe out a portion of the TCR value when setting the interface options.
Signed-off-by: Paul Fulghum <paulkf@microgate.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/char/synclink_gt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/synclink_gt.c b/drivers/char/synclink_gt.c index 07c9be6a6bbf..a85a60a93deb 100644 --- a/drivers/char/synclink_gt.c +++ b/drivers/char/synclink_gt.c | |||
@@ -2630,7 +2630,7 @@ static int get_interface(struct slgt_info *info, int __user *if_mode) | |||
2630 | static int set_interface(struct slgt_info *info, int if_mode) | 2630 | static int set_interface(struct slgt_info *info, int if_mode) |
2631 | { | 2631 | { |
2632 | unsigned long flags; | 2632 | unsigned long flags; |
2633 | unsigned char val; | 2633 | unsigned short val; |
2634 | 2634 | ||
2635 | DBGINFO(("%s set_interface=%x)\n", info->device_name, if_mode)); | 2635 | DBGINFO(("%s set_interface=%x)\n", info->device_name, if_mode)); |
2636 | spin_lock_irqsave(&info->lock,flags); | 2636 | spin_lock_irqsave(&info->lock,flags); |