summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2019-06-22 13:07:35 +0300
committerThomas Gleixner <tglx@linutronix.de>2019-06-22 13:07:35 +0300
commit6808acb57a286cda48d8674713e672681ca7ffb3 (patch)
tree77ca408d2453069f6caec40053c4a20e60594c32 /tools
parentd21e43f2ef32ba3242687dbedb3c4b9a76b3eebc (diff)
parent9e0babf2c06c73cda2c0cd37a1653d823adb40ec (diff)
downloadlinux-6808acb57a286cda48d8674713e672681ca7ffb3.tar.xz
Merge branch 'linus' into timers/core
Pick up upstream fixes for pending changes.
Diffstat (limited to 'tools')
-rw-r--r--tools/testing/nvdimm/test/iomap.c2
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)