]> git.ipfire.org Git - thirdparty/mdadm.git/commit
avoid double-free upon "old buggy kernel" sysfs_read failure
authorJim Meyering <jim@meyering.net>
Tue, 21 Feb 2012 12:02:22 +0000 (13:02 +0100)
committerNeilBrown <neilb@suse.de>
Tue, 21 Feb 2012 20:14:36 +0000 (07:14 +1100)
commit9200d418d049aff77b3d0ad8f30f1a16adc56030
tree05015a25430f18934d39f9d0f29073a5e4367ac4
parent178950eacc814d50cbc61cd70ebb346aa67e2a03
avoid double-free upon "old buggy kernel" sysfs_read failure

* Incremental.c (Incremental): On sysfs_read failure, don't call
sysfs_free(sra) just before "goto out_unlock", since that very
same "sra" is freed the same way by the clean-up code below.

Signed-off-by: Jim Meyering <meyering@redhat.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Incremental.c