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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Feb 2017 23:25:32 +0000 (15:25 -0800)
commit621d101a7ebb7965ee3332e4e6e8d17bdd8f0555
treea03a1f83f0ac759b40de3e554a292ffa5379e560
parentcd755677d9444d718ac04a693523c9ff5a7f79ec
dm rq: cope with DM device destruction while in dm_old_request_fn()

commit 4087a1fffe38106e10646606a27f10d40451862d upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/md/dm-rq.c