dm rq: cope with DM device destruction while in dm_old_request_fn()
authorMike Snitzer <snitzer@redhat.com>
Wed, 25 Jan 2017 15:24:52 +0000 (16:24 +0100)
committerMike Snitzer <snitzer@redhat.com>
Fri, 3 Feb 2017 15:18:43 +0000 (10:18 -0500)
commit4087a1fffe38106e10646606a27f10d40451862d
treebba4836d57a0ff1922c1831c62ba22b6bfd43794
parentd19a55ccad15a486ffe03030570744e5d5bd9f8e
dm rq: cope with DM device destruction while in dm_old_request_fn()

Fixes a crash in dm_table_find_target() due to a NULL struct dm_table
being passed from dm_old_request_fn() that races with DM device
destruction.

Reported-by: artem@flashgrid.io
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Cc: stable@vger.kernel.org
drivers/md/dm-rq.c