dect
/
linux-2.6
Archived
13
0
Fork 0
This repository has been archived on 2022-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
linux-2.6/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 Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
8xx_io [PATCH] timer initialization cleanup: DEFINE_TIMER 2005-09-09 14:03:48 -07:00
8260_io Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
amiga Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
boot [PATCH] ppc32 ld.script fix for building on ppc64 2005-09-29 08:46:27 -07:00
configs [PATCH] ppc32: cpci690 updates 2005-09-05 00:06:01 -07:00
kernel [PATCH] ppc highmem fix 2005-10-11 09:46:54 -07:00
lib [LIB]: Consolidate _atomic_dec_and_lock() 2005-09-14 21:47:01 -07:00
math-emu Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mm [PATCH] ppc32: Kill init on unhandled synchronous signals 2005-09-10 10:15:11 -07:00
oprofile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
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 [PATCH] ppc32: Kill embedded system.map, use kallsyms 2005-06-21 18:46:26 -07:00
Kconfig [LIB]: Consolidate _atomic_dec_and_lock() 2005-09-14 21:47:01 -07:00
Kconfig.debug [PATCH] ppc32: mv64x60 updates & enhancements 2005-09-05 00:06:00 -07:00
Makefile kbuild: rename prepare to archprepare to fix dependency chain 2005-09-11 22:30:22 +02:00