diff options
author | yalin wang <yalin.wang2010@gmail.com> | 2015-08-27 19:35:48 -0400 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2015-08-27 19:35:48 -0400 |
commit | a06a7576526e10a99ea7721533e7f2df3e26baad (patch) | |
tree | 4a98266a93b3e94100c7144e791b0a4a16ef00e8 | |
parent | 7a67832c7e44c20935c5d6f2264035a0f7bf0d8f (diff) | |
download | op-kernel-dev-a06a7576526e10a99ea7721533e7f2df3e26baad.zip op-kernel-dev-a06a7576526e10a99ea7721533e7f2df3e26baad.tar.gz |
nvdimm: change to use generic kvfree()
Signed-off-by: yalin wang <yalin.wang2010@gmail.com>
Reviewed-by: Ross Zwisler <ross.zwisler@linux.intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
-rw-r--r-- | drivers/nvdimm/dimm_devs.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/nvdimm/dimm_devs.c b/drivers/nvdimm/dimm_devs.c index c05eb80..651b8d1 100644 --- a/drivers/nvdimm/dimm_devs.c +++ b/drivers/nvdimm/dimm_devs.c @@ -241,10 +241,7 @@ void nvdimm_drvdata_release(struct kref *kref) nvdimm_free_dpa(ndd, res); nvdimm_bus_unlock(dev); - if (ndd->data && is_vmalloc_addr(ndd->data)) - vfree(ndd->data); - else - kfree(ndd->data); + kvfree(ndd->data); kfree(ndd); put_device(dev); } |