hv: hypervvssd: call endmntent before call setmntent again
authorVaughan Cao <vaughan.cao@oracle.com>
Wed, 18 Mar 2015 19:29:28 +0000 (12:29 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Mar 2015 10:53:54 +0000 (11:53 +0100)
commit4ce50e9491c5c92baf8bb7af85eb25398d3f70af
tree0cfe0543c07c8c41632df69b10a5d95d7035d8a3
parentf2eddbc9f1a466329c68f3b75e89cfacd2792365
hv: hypervvssd: call endmntent before call setmntent again

If freeze fails, vss_operate will re-enter itself to thaw. But it forgets
to call endmntent() before it recalls setmntent() again.

Signed-off-by: Vaughan Cao <vaughan.cao@oracle.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/hv/hv_vss_daemon.c