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>
This commit is contained in:
parent
7a67832c7e
commit
a06a757652
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user