Bug 6889 - adfs_disc_map() passes NULL as vsprintf() format string.
Summary: adfs_disc_map() passes NULL as vsprintf() format string.
Status: RESOLVED CODE_FIX
Alias: None
Product: File System
Classification: Unclassified
Component: Other (show other bugs)
Hardware: i386 Linux
: P2 normal
Assignee: fs_other
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-24 03:01 UTC by Ralph Corderoy
Modified: 2006-08-07 00:52 UTC (History)
0 users

See Also:
Kernel Version: 2.6.11
Subsystem:
Regression: ---
Bisected commit-id:


Attachments

Description Ralph Corderoy 2006-07-24 03:01:09 UTC
fs/adfs/super.c's adfs_disc_map() contains

    adfs_error(sb, NULL, "map corrupted");

The second parameter should be a vsprintf() format string with further
parameters being passed to vsprintf().  The `NULL' shouldn't be there and
results in vsprintf() trying to dereference NULL.  The line should be

    adfs_error(sb, "map corrupted");
Comment 1 Andrew Morton 2006-08-07 00:52:38 UTC
Thanks, I queued the fix.

Note You need to log in before you can comment on or make changes to this bug.