| Submitter | Andrew Morton |
|---|---|
| Date | 2009-09-18 19:49:27 |
| Message ID | <200909181949.n8IJnSbl019077@imap1.linux-foundation.org> |
| Download | mbox | patch |
| Permalink | /patch/48618/ |
| State | New |
| Headers | show |
Comments
Patch
diff -puN scripts/markup_oops.pl~markup_oops-use-modinfo-to-avoid-confusion-with-underscored-module-names scripts/markup_oops.pl --- a/scripts/markup_oops.pl~markup_oops-use-modinfo-to-avoid-confusion-with-underscored-module-names +++ a/scripts/markup_oops.pl @@ -184,10 +184,7 @@ if ($target eq "0") { # if it's a module, we need to find the .ko file and calculate a load offset if ($module ne "") { - my $dir = dirname($filename); - $dir = $dir . "/"; - my $mod = $module . ".ko"; - my $modulefile = `find $dir -name $mod | head -1`; + my $modulefile = `modinfo $module | grep '^filename:' | awk '{ print \$2 }'`; chomp($modulefile); $filename = $modulefile; if ($filename eq "") {