summaryrefslogtreecommitdiffstats
path: root/net/ipv6/xfrm6_tunnel.c
diff options
context:
space:
mode:
authorPaolo Galtieri <pgaltieri@mvista.com>2005-10-11 08:29:07 -0700
committerLinus Torvalds <torvalds@g5.osdl.org>2005-10-11 09:46:54 -0700
commita0c111c631e7ab4abd68920debd44259160812ef (patch)
treebfcafa019ba2fb2bf38e5a07f9f5958b7ecb697f /net/ipv6/xfrm6_tunnel.c
parent1bef40032992320dd25a266fc166bfb8fa3f2f59 (diff)
downloadblackbird-op-linux-a0c111c631e7ab4abd68920debd44259160812ef.tar.gz
blackbird-op-linux-a0c111c631e7ab4abd68920debd44259160812ef.zip
[PATCH] ppc highmem fix
I've noticed that the calculations for seg_size and nr_segs in __dma_sync_page_highmem() (arch/ppc/kernel/dma-mapping.c) are wrong. The incorrect calculations can result in either an oops or a panic when running fsck depending on the size of the partition. The problem with the seg_size calculation is that it can result in a negative number if size is offset > size. The problem with the nr_segs caculation is returns the wrong number of segments, e.g. it returns 1 when size is 200 and offset is 4095, when it should return 2 or more. Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'net/ipv6/xfrm6_tunnel.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud