aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2019-06-22 12:07:35 +0200
committerThomas Gleixner <tglx@linutronix.de>2019-06-22 12:07:35 +0200
commit6808acb57a286cda48d8674713e672681ca7ffb3 (patch)
tree77ca408d2453069f6caec40053c4a20e60594c32 /tools
parentkselftests: timers: freq-step: Update maximum acceptable precision and errors (diff)
parentLinux 5.2-rc5 (diff)
downloadlinux-dev-6808acb57a286cda48d8674713e672681ca7ffb3.tar.xz
linux-dev-6808acb57a286cda48d8674713e672681ca7ffb3.zip
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)