Skip to content
Commit d7519392 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Dan Williams
Browse files

dm: fix alloc_dax error handling in alloc_dev



Make sure ->dax_dev is NULL on error so that the cleanup path doesn't
trip over an ERR_PTR.

Reported-by: default avatarDan Williams <dan.j.williams@intel.com>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20211129102203.2243509-2-hch@lst.de


Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
parent 83762cb5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment