Jelajahi Sumber

[PATCH] adfs error message fix

Don't use NULL as a printf control string.  Fixes bug #6889.

Cc: Ralph Corderoy <ralph@inputplus.co.uk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Andrew Morton 18 tahun lalu
induk
melakukan
1725cd0ae0
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      fs/adfs/super.c

+ 1 - 1
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))
 	if (adfs_checkmap(sb, dm))
 		return dm;
 		return dm;
 
 
-	adfs_error(sb, NULL, "map corrupted");
+	adfs_error(sb, "map corrupted");
 
 
 error_free:
 error_free:
 	while (--zone >= 0)
 	while (--zone >= 0)