diff options
author | Paul Fulghum <paulkf@microgate.com> | 2006-01-19 01:42:24 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-19 03:20:16 (GMT) |
commit | 35fbd397f0ce2addd5ab889bf0bcd95f45837e3e (patch) | |
tree | b1c45201b5e2daaf9341104b9bca6be80eb27f01 /drivers/char | |
parent | c8d338c8dbc4461a6de1171c2332b8ed547f8f3b (diff) | |
download | linux-fsl-qoriq-35fbd397f0ce2addd5ab889bf0bcd95f45837e3e.tar.xz |
[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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/synclink_gt.c b/drivers/char/synclink_gt.c index 07c9be6..a85a60a 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); |