summaryrefslogtreecommitdiff
path: root/drivers/char
diff options
context:
space:
mode:
authorPaul Fulghum <paulkf@microgate.com>2006-01-18 17:42:24 -0800
committerLinus Torvalds <torvalds@g5.osdl.org>2006-01-18 19:20:16 -0800
commit35fbd397f0ce2addd5ab889bf0bcd95f45837e3e (patch)
treeb1c45201b5e2daaf9341104b9bca6be80eb27f01 /drivers/char
parentc8d338c8dbc4461a6de1171c2332b8ed547f8f3b (diff)
downloadlinux-3.10-35fbd397f0ce2addd5ab889bf0bcd95f45837e3e.tar.gz
linux-3.10-35fbd397f0ce2addd5ab889bf0bcd95f45837e3e.tar.bz2
linux-3.10-35fbd397f0ce2addd5ab889bf0bcd95f45837e3e.zip
[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/char')
-rw-r--r--drivers/char/synclink_gt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/synclink_gt.c b/drivers/char/synclink_gt.c
index 07c9be6a6bb..a85a60a93de 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);