]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
fsr: fix uninitialized fs usage after timeout
authorJeff Mahoney <jeffm@suse.com>
Tue, 22 Aug 2017 15:01:30 +0000 (10:01 -0500)
committerEric Sandeen <sandeen@redhat.com>
Tue, 22 Aug 2017 15:01:30 +0000 (10:01 -0500)
commit8d2666e3f66c263946b47155f3764f64ce64d684
tree81cd1a39d87430780b24f83e9a1693b45a0c0647
parent592c10154f9928d6f44c18311f7edb4f4d7ff6de
fsr: fix uninitialized fs usage after timeout

In the main loop of fsrallfs, we exit when we've hit the timeout but
we increment fs before we get there.  If we're operating on the last
file system in the array, we'll hit an uninitialized fsdesc and
crash in fsrall_cleanup.

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
[sandeen: change Jeff's for(; loop]
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
fsr/xfs_fsr.c