tmp_suning_uos_patched/arch/ppc
Paolo Galtieri a0c111c631 [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>
2005-10-11 09:46:54 -07:00
..
4xx_io
8xx_io
8260_io
amiga
boot [PATCH] ppc32 ld.script fix for building on ppc64 2005-09-29 08:46:27 -07:00
configs
kernel [PATCH] ppc highmem fix 2005-10-11 09:46:54 -07:00
lib
math-emu
mm
oprofile
platforms [PATCH] ppc: Fix timekeeping with HZ=250 on some Mac models 2005-10-05 07:33:42 -07:00
syslib [PATCH] useless includes of linux/irq.h (arch/ppc) 2005-09-30 08:54:02 -07:00
xmon
Kconfig
Kconfig.debug
Makefile