The patch titled loop: forward-port resource leak checks from Solar has been added to the -mm tree. Its filename is loop-forward-port-resource-leak-checks-from-solar.patch See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: loop: forward-port resource leak checks from Solar From: "Serge E. Hallyn" <serue@xxxxxxxxxx> Forward port of the patch by Solar and ported by Julio. Compiles, boots, and passes my looptorturetest.sh. Signed-off-by: Serge E. Hallyn <serue@xxxxxxxxxx> Cc: Julio Auto <mindvortex@xxxxxxxxx> Cc: Solar Designer <solar@xxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxx> --- drivers/block/loop.c | 13 +++++++++++-- 1 files changed, 11 insertions(+), 2 deletions(-) diff -puN drivers/block/loop.c~loop-forward-port-resource-leak-checks-from-solar drivers/block/loop.c --- a/drivers/block/loop.c~loop-forward-port-resource-leak-checks-from-solar +++ a/drivers/block/loop.c @@ -820,13 +820,22 @@ static int loop_set_fd(struct loop_devic lo->lo_number); if (IS_ERR(lo->lo_thread)) { error = PTR_ERR(lo->lo_thread); - lo->lo_thread = NULL; - goto out_putf; + goto out_clr; } lo->lo_state = Lo_bound; wake_up_process(lo->lo_thread); return 0; +out_clr: + lo->lo_thread = NULL; + lo->lo_device = NULL; + lo->lo_backing_file = NULL; + lo->lo_flags = 0; + set_capacity(disks[lo->lo_number], 0); + invalidate_bdev(bdev, 0); + bd_set_size(bdev, 0); + mapping_set_gfp_mask(mapping, lo->old_gfp_mask); + lo->lo_state = Lo_unbound; out_putf: fput(file); out: _ Patches currently in -mm which might be from serue@xxxxxxxxxx are kthread-switch-arch-arm-kernel-apmc.patch kthread-update-arch-mips-kernel-apmc.patch git-net.patch kthread-convert-loopc-to-kthread.patch kthread-drivers-base-firmware_classc.patch lsm-remove-bsd-secure-level-security-module.patch kthread-convert-arch-i386-kernel-apmc.patch pidspace-is_init.patch loop-forward-port-resource-leak-checks-from-solar.patch pids-coding-style-use-struct-pidmap.patch move-pidmap-to-pspaceh.patch move-pidmap-to-pspaceh-fix.patch define-struct-pspace.patch proc-sysctl-add-_proc_do_string-helper.patch namespaces-add-nsproxy.patch namespaces-add-nsproxy-move-init_nsproxy-into-kernel-nsproxyc.patch namespaces-incorporate-fs-namespace-into-nsproxy.patch namespaces-utsname-introduce-temporary-helpers.patch namespaces-utsname-switch-to-using-uts-namespaces.patch namespaces-utsname-use-init_utsname-when-appropriate.patch namespaces-utsname-implement-utsname-namespaces.patch namespaces-utsname-sysctl-hack.patch namespaces-utsname-remove-system_utsname.patch namespaces-utsname-implement-clone_newuts-flag.patch uts-copy-nsproxy-only-when-needed.patch namespaces-utsname-switch-to-using-uts-namespaces-klibc-bit.patch namespaces-utsname-use-init_utsname-when-appropriate-klibc-bit.patch namespaces-utsname-switch-to-using-uts-namespaces-klibc-bit-2.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html