diff options
author | Pankaj Gupta <[email protected]> | 2019-07-30 17:07:08 +0530 |
---|---|---|
committer | Mike Snitzer <[email protected]> | 2019-07-30 18:58:54 -0400 |
commit | 5348deb138abb90ca8f728356772e38abc791cf9 (patch) | |
tree | 7f57ee9b6434d2c6322cd6a02bc44e1e8bc4893a /lib/mpi/mpi-internal.h | |
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: [email protected]
Signed-off-by: Pankaj Gupta <[email protected]>
Acked-by: Dan Williams <[email protected]>
Signed-off-by: Mike Snitzer <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-internal.h')
0 files changed, 0 insertions, 0 deletions