diff options
author | Rakesh Pandit <rakesh@tuxera.com> | 2014-03-26 21:34:30 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2014-04-22 14:33:44 +0200 |
commit | 30156b749bd7ceeec3f75f676c07aedafd26799c (patch) | |
tree | 80749e1b893c850364cad0de01604f41f86e606b /fsck.btrfs | |
parent | 5d889503552d9cccc8a7df8fac8804a1b0d773a4 (diff) |
Btrfs-progs: chunk_recovery: fix mem leak and pthread_cancel call
Free memory if open call fails. Prevent pthread_cancel on threads
which have already finished successfully. If all calls to
pthread_create and pthread_join are successful, we mistakenly call
pthread_cancel because cancel_from and cancel_to are both zero.
Make POSIX.1-2001 happy by supplying a non-NULL second argument to
pthread_setcanceltype.
Signed-off-by: Rakesh Pandit <rakesh@tuxera.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'fsck.btrfs')
0 files changed, 0 insertions, 0 deletions