]> git.baikalelectronics.ru Git - kernel.git/commit
[POWERPC] QE: fix invalid pointer usage in ucc_slow_init()
authorTimur Tabi <timur@freescale.com>
Thu, 15 Mar 2007 14:48:53 +0000 (09:48 -0500)
committerKumar Gala <galak@kernel.crashing.org>
Mon, 26 Mar 2007 22:06:22 +0000 (17:06 -0500)
commit94d4e9cbbf6120e1b7f4626492836e23a2946bf1
tree57e85e2dc75862d6fd64f963674c4ccfe4a5c3ba
parent8bcb71c70e03854040d2c4f6d8790775175b8259
[POWERPC] QE: fix invalid pointer usage in ucc_slow_init()

In two places, ucc_slow_init() passes a physical address instead of the
virtual address to functions that were expecting the latter, causing a kernel
panic.  us_info->regs contains the physical address of the UCC register set.
The registers are ioremap'd to kernel space, and the virtual pointers are
stored in us_regs.  The code was using us_info->regs when it should have been
using us_regs.

Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/sysdev/qe_lib/ucc_slow.c