]> git.ipfire.org Git - thirdparty/mdadm.git/commit
DDF: guard against ->pdnum being negative.
authorNeilBrown <neilb@suse.de>
Wed, 2 Apr 2014 02:34:10 +0000 (13:34 +1100)
committerNeilBrown <neilb@suse.de>
Wed, 2 Apr 2014 02:34:10 +0000 (13:34 +1100)
commita44e993e37a76561fa30e932b93d85fab9bcc272
treedf4c689a3f63a209e1025901725831597a20a155
parente5a03804dc27e662be94290c62760dbc544c0211
DDF: guard against ->pdnum being negative.

It is conceivable that ->pdnum could be -1, though only if
the metadata is corrupt.
We should be careful not to use it if it is.

Also remove an assignment for pdnum to ->container_member.
This is never used and cannot possibly mean anything.

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