btrfs-progs: call endmntent in btrfs_scan_kernel
commit37cd29521a01135335d0d0657829a182fa261a74
authorDavid Sterba <dsterba@suse.cz>
Wed, 27 Nov 2013 17:14:58 +0000 (27 18:14 +0100)
committerChris Mason <clm@fb.com>
Fri, 31 Jan 2014 16:22:07 +0000 (31 08:22 -0800)
tree921ac8ee522e9ba5310887d03c22062b32a8cae6
parent53ee1bccf99cd5b474fe1aa857b7dd176e3a1407
btrfs-progs: call endmntent in btrfs_scan_kernel

btrfs_scan_kernel() does a getmntent() but never releases the
filedescriptor it gets back from that.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=64711

Reported-by: Arjan van de Ven <arjan@linux.intel.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <clm@fb.com>
cmds-filesystem.c