From: Andrew Morton Date: Mon, 14 Aug 2006 06:24:17 +0000 (-0700) Subject: [PATCH] adfs error message fix X-Git-Tag: firefly_0821_release~33887 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=1725cd0ae07bb31f68803edcc5bdc99952c7d2f4;p=firefly-linux-kernel-4.4.55.git [PATCH] adfs error message fix Don't use NULL as a printf control string. Fixes bug #6889. Cc: Ralph Corderoy Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman --- diff --git a/fs/adfs/super.c b/fs/adfs/super.c index ba1c88af49fe..82011019494c 100644 --- a/fs/adfs/super.c +++ b/fs/adfs/super.c @@ -308,7 +308,7 @@ static struct adfs_discmap *adfs_read_map(struct super_block *sb, struct adfs_di if (adfs_checkmap(sb, dm)) return dm; - adfs_error(sb, NULL, "map corrupted"); + adfs_error(sb, "map corrupted"); error_free: while (--zone >= 0)