commit | 5348deb138abb90ca8f728356772e38abc791cf9 | [log] [tgz] |
---|---|---|
author | Pankaj Gupta <pagupta@redhat.com> | Tue Jul 30 17:07:08 2019 +0530 |
committer | Mike Snitzer <snitzer@redhat.com> | Tue Jul 30 18:58:54 2019 -0400 |
tree | 7f57ee9b6434d2c6322cd6a02bc44e1e8bc4893a | |
parent | 609488bc979f99f805f34e9a32c1e3b71179d10b [diff] |
dm table: fix dax_dev NULL dereference in device_synchronous() If a device doesn't support DAX its 'dax_dev' is NULL. Fix device_synchronous() to first check if dax_dev is NULL before dereferencing it. Fixes: 2e9ee0955d3c ("dm: enable synchronous dax") Reported-by: jencce.kernel@gmail.com Signed-off-by: Pankaj Gupta <pagupta@redhat.com> Acked-by: Dan Williams <dan.j.williams@intel.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com>