Re: "loop device recursion avoidance" patch causes difficulties

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Lubo_ Dole_el <[email protected]> wrote:
>
> I've created a bugreport at http://bugme.osdl.org/show_bug.cgi?id=4472
> and I was advised to write to this list.
> 
> A patch called "loop device recursion avoidance" which appeared in
> 2.6.11 kernel has complicated ISO image mounting from another mounted
> media.

Does this help?


diff -puN drivers/block/loop.c~loop-recusrion-avoidance-fix drivers/block/loop.c
--- 25/drivers/block/loop.c~loop-recusrion-avoidance-fix	Wed May 18 14:03:14 2005
+++ 25-akpm/drivers/block/loop.c	Wed May 18 14:03:14 2005
@@ -765,10 +765,8 @@ static int loop_set_fd(struct loop_devic
 			goto out_putf;
 
 		l = f->f_mapping->host->i_bdev->bd_disk->private_data;
-		if (l->lo_state == Lo_unbound) {
-			error = -EINVAL;
-			goto out_putf;
-		}
+		if (l->lo_state == Lo_unbound)
+			break;
 		f = l->lo_backing_file;
 	}
 
_

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux