]> git.baikalelectronics.ru Git - kernel.git/commit
microblaze: Sane handling of missing timer/intc in device tree
authorJohn Williams <john.williams@petalogix.com>
Wed, 29 Jul 2009 12:08:40 +0000 (22:08 +1000)
committerMichal Simek <monstr@monstr.eu>
Tue, 18 Aug 2009 08:33:30 +0000 (10:33 +0200)
commit7d5cbfcf4ff06c030d95c6a3b1b874c522d3ad29
tree8ae8086fe126192fb4fd68a37811db24599048a3
parent2940edf7e2ee16c82d2f9dad3eae3330629840d7
microblaze: Sane handling of missing timer/intc in device tree

This code path doesn't test any returned pointers for NULL, leading to a bad
kernel page fault if there's no timer/intc found.

Slightly better is to BUG(), but even better still would be a printk beforehand.

Signed-off-by: John Williams <john.williams@petalogix.com>
Signed-off-by: Michal Simek <monstr@monstr.eu>
arch/microblaze/kernel/intc.c
arch/microblaze/kernel/timer.c