aboutsummaryrefslogtreecommitdiff
path: root/drivers/mtd/lpddr/lpddr_cmds.c
diff options
context:
space:
mode:
authorScott Valentine <[email protected]>2009-11-11 14:26:49 -0800
committerLinus Torvalds <[email protected]>2009-11-12 07:25:59 -0800
commitbcb3a1676b87effbdeffe8da5c44f63433d158d9 (patch)
tree179eaa6692cad02a1e2b4c15a6919061aa06dd8d /drivers/mtd/lpddr/lpddr_cmds.c
parent61df33370c52633b47d794f5e024eb15ca9a2efe (diff)
rtc: v3020: fix v3020_mmio_read_bit()
v3020_mmio_read_bit() always returns 0 when left_shift > 7. v3020_mmio_read_bit()'s return type is (unsigned char). The code returns a value masked by (1 << left_shift) that is casted to the return type. If left_shift is larger than 7, the cast will always result in a 0 return value. The problem was discovered with left_shift = 16, and the included patch corrects the problem. The bug was introduced in the last (Apr 3 2009) commit of the file, kernel versions 2.6.30 and later. Cc: Alessandro Zummo <[email protected]> Cc: Paul Gortmaker <[email protected]> Cc: Raphael Assenat <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/mtd/lpddr/lpddr_cmds.c')
0 files changed, 0 insertions, 0 deletions