[dm-devel] [PATCH 2/4] loop: fix crash if blk_alloc_queue fails
Tejun Heo
tj at kernel.org
Tue Oct 15 13:43:59 UTC 2013
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 at redhat.com>
> Cc: stable at kernel.org # 3.1+
Acked-by: Tejun Heo <tj at kernel.org>
Thanks.
--
tejun
More information about the dm-devel
mailing list