diff options
author | Helen Koike | 2019-05-15 13:50:54 -0300 |
---|---|---|
committer | Mike Snitzer | 2019-05-16 09:52:06 -0400 |
commit | 0f41fcf78849c902ddca564f99a8e23ccfc80333 (patch) | |
tree | e56d03d13d08cb5b901e057dc008099e77e2809c /drivers/md/md.h | |
parent | 05d6909ea9d62bb357846177a84842e09fc15914 (diff) |
dm ioctl: fix hang in early create error condition
The dm_early_create() function (which deals with "dm-mod.create=" kernel
command line option) calls dm_hash_insert() who gets an extra reference
to the md object.
In case of failure, this reference wasn't being released, causing
dm_destroy() to hang, thus hanging the whole boot process.
Fix this by calling __hash_remove() in the error path.
Fixes: 6bbc923dfcf57d ("dm: add support to directly boot to a mapped device")
Cc: stable@vger.kernel.org
Signed-off-by: Helen Koike <helen.koike@collabora.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md/md.h')
0 files changed, 0 insertions, 0 deletions