Bug 64711 - btrfs-progs: btrfs_scan_kernel leaks a file descriptor
Summary: btrfs-progs: btrfs_scan_kernel leaks a file descriptor
Status: RESOLVED CODE_FIX
Alias: None
Product: File System
Classification: Unclassified
Component: btrfs (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: Josef Bacik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-10 20:57 UTC by Arjan van de Ven
Modified: 2013-11-27 17:19 UTC (History)
1 user (show)

See Also:
Kernel Version: 3.12
Subsystem:
Regression: No
Bisected commit-id:


Attachments
Proposed patch (269 bytes, patch)
2013-11-10 21:00 UTC, Arjan van de Ven
Details | Diff

Description Arjan van de Ven 2013-11-10 20:57:26 UTC
btrfs_scan_kernel() does a getmntent() but never releases the filedescriptor it gets back from that....
Comment 1 Arjan van de Ven 2013-11-10 21:00:27 UTC
Created attachment 114131 [details]
Proposed patch
Comment 2 David Sterba 2013-11-27 17:19:31 UTC
Patch submitted, thanks.

Note You need to log in before you can comment on or make changes to this bug.