]> git.ipfire.org Git - thirdparty/mdadm.git/commit - Monitor.c
Monitor: avoid NULL dereference with 0.90 metadata
authorJonathan Liu <net147@gmail.com>
Tue, 12 Apr 2011 08:28:01 +0000 (18:28 +1000)
committerNeilBrown <neilb@suse.de>
Tue, 12 Apr 2011 22:25:45 +0000 (08:25 +1000)
commit4019ad07013a5d8618b867f724d1c4a13c5cb05d
treee63e331282cff66cb0af40fc5f87a061a7772a11
parentb357ef43f926179b34fa3d9c78b96f1defd7e4b2
Monitor: avoid NULL dereference with 0.90 metadata

0.90 array do not report the metadata type in /proc/mdstat, so
we cannot assume that mse->metadata_version is non-NULL.

So add an appropriate check.

This adds an additional check missed by commit
eb28e119b03fd5149886ed516fa4bb006ad3602e.

Signed-off-by: NeilBrown <neilb@suse.de>
Monitor.c