Re: [PATCH 2/4] loop: fix crash if blk_alloc_queue fails

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

 



On Mon, Oct 14, 2013 at 12:12:24PM -0400, Mikulas Patocka wrote:
> loop: fix crash if blk_alloc_queue fails
> 
> If blk_alloc_queue fails, loop_add cleans up, but it doesn't clean up the
> identifier allocated with idr_alloc. That causes crash on module unload in
> idr_for_each(&loop_index_idr, &loop_exit_cb, NULL); where we attempt to
> remove non-existed device with that id.
...
> Signed-off-by: Mikulas Patocka <mpatocka@xxxxxxxxxx>
> Cc: stable@xxxxxxxxxx	# 3.1+

Acked-by: Tejun Heo <tj@xxxxxxxxxx>

Thanks.

-- 
tejun

--
dm-devel mailing list
dm-devel@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/dm-devel




[Index of Archives]     [DM Crypt]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite Discussion]     [KDE Users]     [Fedora Docs]

  Powered by Linux