]> git.ipfire.org Git - thirdparty/mdadm.git/commit - Monitor.c
Monitor: avoid NULL dereference with 0.90 metadata
authorNeilBrown <neilb@suse.de>
Mon, 4 Apr 2011 23:16:57 +0000 (09:16 +1000)
committerNeilBrown <neilb@suse.de>
Mon, 4 Apr 2011 23:16:57 +0000 (09:16 +1000)
commiteb28e119b03fd5149886ed516fa4bb006ad3602e
tree3249ea9164bb2847d2a2d1b5d88529afbd62849c
parentaf3c3750348e62784861cde341835f69f36913b4
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.

Reported-by: Eugene <hdejin@yahoo.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Monitor.c