Skip to content

Commit

Permalink
kbuild: fix section mismatch check for unwind on IA64
Browse files Browse the repository at this point in the history
Parameters to strstr() was reversed.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
  • Loading branch information
Sam Ravnborg committed Mar 5, 2006
1 parent 9209aed commit e835a39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/mod/modpost.c
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,7 @@ static int init_section_ref_ok(const char *name)
if (strncmp(*s, name, strlen(*s)) == 0)
return 1;
for (s = namelist3; *s; s++)
if (strstr(*s, name) != NULL)
if (strstr(name, *s) != NULL)
return 1;
return 0;
}
Expand Down Expand Up @@ -842,7 +842,7 @@ static int exit_section_ref_ok(const char *name)
if (strncmp(*s, name, strlen(*s)) == 0)
return 1;
for (s = namelist3; *s; s++)
if (strstr(*s, name) != NULL)
if (strstr(name, *s) != NULL)
return 1;
return 0;
}
Expand Down

0 comments on commit e835a39

Please sign in to comment.