Ozan Çağlayan wrote:
> Ozan Çağlayan wrote:
>
> (Alan and Jon CC'ed)
>   
>> modinfo segfaults when called with a module which is just deleted from
>> the filesystem without re-running depmod.
>>
>> Pass filename instead of the address of it to the error() function to
>> fix the problem.
>>
>> Tested-by: Ozan Çağlayan <[email protected]>
>> Signed-off-by: Ozan Çağlayan <[email protected]>
>> ---
>>  modinfo.c |    2 +-
>>  1 files changed, 1 insertions(+), 1 deletions(-)
>>
>> diff --git a/modinfo.c b/modinfo.c
>> index 1c1b57e..c2d733f 100644
>> --- a/modinfo.c
>> +++ b/modinfo.c
>> @@ -242,7 +242,7 @@ static struct elf_file *grab_module(const char *name,
>>                      module = grab_elf_file(filename);
>>                      if (!module)
>>                              error("modinfo: could not open %s: %s\n",
>> -                                    *filename, strerror(errno));
>> +                                     filename, strerror(errno));
>>                      free(filename);
>>                      return module;
>>              }
>>   
>>     


It looks like Jon got around to applying this earlier today :-).

Thanks
Alan
--
To unsubscribe from this list: send the line "unsubscribe linux-modules" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to