fsstack/ecryptfs: remove unused get_nlinks param to fsstack_copy_attr_all
[linux-2.6-block.git] / scripts / markup_oops.pl
index 89774011965d7f17289b09af086c1651e9cf7ef1..5f0fcb712e2992229eeb3606a3e425bcf4115218 100644 (file)
@@ -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 "") {