projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a3305a8
)
[MIPS] Check function pointers are non-zero before calling.
author
Ralf Baechle
<ralf@linux-mips.org>
Tue, 17 Jan 2006 21:14:01 +0000
(21:14 +0000)
committer
Ralf Baechle
<ralf@linux-mips.org>
Tue, 7 Feb 2006 13:30:22 +0000
(13:30 +0000)
Several boards don't initialize the pointers, so let's play safe.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/reset.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/mips/kernel/reset.c
b/arch/mips/kernel/reset.c
index ae2ba67b7ef61f1054f8f5f19f625d3f78b5f6ed..a131aa0cbe66d8a56f96208820761d778256b5ce 100644
(file)
--- a/
arch/mips/kernel/reset.c
+++ b/
arch/mips/kernel/reset.c
@@
-23,16
+23,18
@@
void (*_machine_power_off)(void);
void machine_restart(char *command)
{
- _machine_restart(command);
+ if (_machine_restart)
+ _machine_restart(command);
}
void machine_halt(void)
{
- _machine_halt();
+ if (_machine_halt)
+ _machine_halt();
}
void machine_power_off(void)
{
- _machine_power_off();
+ if (_machine_power_off)
+ _machine_power_off();
}
-