Bugzilla – Attachment 61609 Details for
Bug 139359
Checking for remap_pfn_range() no longer works
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
IDP Log In
|
Forgot Password
[patch]
Patch for segfault of modpost
modpost-segfault-fix.diff (text/plain), 713 bytes, created by
Takashi Iwai
on 2005-12-21 19:19:31 UTC
(
hide
)
Description:
Patch for segfault of modpost
Filename:
MIME Type:
Creator:
Takashi Iwai
Created:
2005-12-21 19:19:31 UTC
Size:
713 bytes
patch
obsolete
>diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c >--- a/scripts/mod/modpost.c >+++ b/scripts/mod/modpost.c >@@ -613,6 +613,8 @@ add_depends(struct buffer *b, struct mod > buf_printf(b, "__attribute__((section(\".modinfo\"))) =\n"); > buf_printf(b, "\"depends="); > for (s = mod->unres; s; s = s->next) { >+ const char *r; >+ > if (!s->module) > continue; > >@@ -620,8 +622,10 @@ add_depends(struct buffer *b, struct mod > continue; > > s->module->seen = 1; >- buf_printf(b, "%s%s", first ? "" : ",", >- strrchr(s->module->name, '/') + 1); >+ r = strrchr(s->module->name, '/'); >+ if (! r) >+ continue; >+ buf_printf(b, "%s%s", first ? "" : ",", r + 1); > first = 0; > } > buf_printf(b, "\";\n");
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
|
Diff
Attachments on
bug 139359
: 61609