diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2019-06-22 13:07:35 +0300 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2019-06-22 13:07:35 +0300 |
commit | 6808acb57a286cda48d8674713e672681ca7ffb3 (patch) | |
tree | 77ca408d2453069f6caec40053c4a20e60594c32 /tools/testing | |
parent | d21e43f2ef32ba3242687dbedb3c4b9a76b3eebc (diff) | |
parent | 9e0babf2c06c73cda2c0cd37a1653d823adb40ec (diff) | |
download | linux-6808acb57a286cda48d8674713e672681ca7ffb3.tar.xz |
Merge branch 'linus' into timers/core
Pick up upstream fixes for pending changes.
Diffstat (limited to 'tools/testing')
-rw-r--r-- | tools/testing/nvdimm/test/iomap.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/testing/nvdimm/test/iomap.c b/tools/testing/nvdimm/test/iomap.c index 280015c22598..076df22e4bda 100644 --- a/tools/testing/nvdimm/test/iomap.c +++ b/tools/testing/nvdimm/test/iomap.c @@ -100,7 +100,9 @@ static void nfit_test_kill(void *_pgmap) { struct dev_pagemap *pgmap = _pgmap; + WARN_ON(!pgmap || !pgmap->ref || !pgmap->kill || !pgmap->cleanup); pgmap->kill(pgmap->ref); + pgmap->cleanup(pgmap->ref); } void *__wrap_devm_memremap_pages(struct device *dev, struct dev_pagemap *pgmap) |