diff options
Diffstat (limited to 'scripts/mod')
-rw-r--r-- | scripts/mod/modpost.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c index c4dc1d72d02e..3b570b18c2e4 100644 --- a/scripts/mod/modpost.c +++ b/scripts/mod/modpost.c | |||
@@ -776,7 +776,7 @@ static int init_section_ref_ok(const char *name) | |||
776 | if (strncmp(*s, name, strlen(*s)) == 0) | 776 | if (strncmp(*s, name, strlen(*s)) == 0) |
777 | return 1; | 777 | return 1; |
778 | for (s = namelist3; *s; s++) | 778 | for (s = namelist3; *s; s++) |
779 | if (strstr(*s, name) != NULL) | 779 | if (strstr(name, *s) != NULL) |
780 | return 1; | 780 | return 1; |
781 | return 0; | 781 | return 0; |
782 | } | 782 | } |
@@ -842,7 +842,7 @@ static int exit_section_ref_ok(const char *name) | |||
842 | if (strncmp(*s, name, strlen(*s)) == 0) | 842 | if (strncmp(*s, name, strlen(*s)) == 0) |
843 | return 1; | 843 | return 1; |
844 | for (s = namelist3; *s; s++) | 844 | for (s = namelist3; *s; s++) |
845 | if (strstr(*s, name) != NULL) | 845 | if (strstr(name, *s) != NULL) |
846 | return 1; | 846 | return 1; |
847 | return 0; | 847 | return 0; |
848 | } | 848 | } |