modinfo: Fix segmentation fault due to the wrong parameter
authorOzan Çağlayan <ozan@pardus.org.tr>
Fri, 7 Aug 2009 07:37:11 +0000 (10:37 +0300)
committerJon Masters <jcm@jonmasters.org>
Thu, 1 Oct 2009 05:56:20 +0000 (01:56 -0400)
commit0ae7e1a5b57873186d60b9d9508820b1c5d86598
tree22cb758a4d6f7d0d1771669097d5adfcf703aa16
parent9a1c905651a38d1f2c6d4d836f81b5e06a503521
modinfo: Fix segmentation fault due to the wrong parameter

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 <ozan@pardus.org.tr>
Signed-off-by: Ozan Çağlayan <ozan@pardus.org.tr>
modinfo.c