* [PATCH] module: fix panic in is_imv_cond_end_module()
@ 2008-05-12 13:17 Pavel Roskin
2008-05-12 13:24 ` Pavel Roskin
0 siblings, 1 reply; 2+ messages in thread
From: Pavel Roskin @ 2008-05-12 13:17 UTC (permalink / raw)
To: Mathieu Desnoyers; +Cc: Ingo Molnar, linux-kernel
Signed-off-by: Pavel Roskin <proski@gnu.org>
---
The patch is for mingo/linux-2.6-ftrace.git repository.
kernel/module.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/kernel/module.c b/kernel/module.c
index 8f2f6fd..1831868 100644
--- a/kernel/module.c
+++ b/kernel/module.c
@@ -2664,6 +2664,10 @@ EXPORT_SYMBOL_GPL(module_imv_update);
int is_imv_cond_end_module(unsigned long addr1, unsigned long addr2)
{
struct module *mod = __module_text_address(addr1);
+
+ if (!mod)
+ return 0;
+
return _is_imv_cond_end(mod->immediate_cond_end,
mod->immediate_cond_end + mod->num_immediate_cond_end,
addr1, addr2);
--
Regards,
Pavel Roskin
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] module: fix panic in is_imv_cond_end_module()
2008-05-12 13:17 [PATCH] module: fix panic in is_imv_cond_end_module() Pavel Roskin
@ 2008-05-12 13:24 ` Pavel Roskin
0 siblings, 0 replies; 2+ messages in thread
From: Pavel Roskin @ 2008-05-12 13:24 UTC (permalink / raw)
To: Mathieu Desnoyers; +Cc: Ingo Molnar, linux-kernel
On Mon, 2008-05-12 at 09:17 -0400, Pavel Roskin wrote:
> Signed-off-by: Pavel Roskin <proski@gnu.org>
> ---
> The patch is for mingo/linux-2.6-ftrace.git repository.
I see it's in linux-2.6-sched-devel already. Sorry for the noise.
--
Regards,
Pavel Roskin
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-05-12 13:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-12 13:17 [PATCH] module: fix panic in is_imv_cond_end_module() Pavel Roskin
2008-05-12 13:24 ` Pavel Roskin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox