diff options
author | Paul Fulghum <paulkf@microgate.com> | 2006-01-18 17:42:24 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-18 19:20:16 -0800 |
commit | 35fbd397f0ce2addd5ab889bf0bcd95f45837e3e (patch) | |
tree | b1c45201b5e2daaf9341104b9bca6be80eb27f01 | |
parent | c8d338c8dbc4461a6de1171c2332b8ed547f8f3b (diff) | |
download | linux-35fbd397f0ce2addd5ab889bf0bcd95f45837e3e.tar.bz2 |
[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>
-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) static int set_interface(struct slgt_info *info, int if_mode) { unsigned long flags; - unsigned char val; + unsigned short val; DBGINFO(("%s set_interface=%x)\n", info->device_name, if_mode)); spin_lock_irqsave(&info->lock,flags); |