markup_oops: use modinfo to avoid confusion with underscored module names
When EIP is at a module having an underscore in its name, the current code fails to find it because the module filenames has '-' instead of '_'. Use modinfo for a better path finding. Signed-off-by: Ozan Çaglayan <ozan@pardus.org.tr> Acked-by: WANG Cong <xiyou.wangcong@gmail.com> Cc: Arjan van de Ven <arjan@infradead.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
This commit is contained in:
parent
f9d490ab37
commit
82fa39552f
1 changed files with 1 additions and 4 deletions
|
@ -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 "") {
|
||||
|
|
Loading…
Reference in a new issue