[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1440064809-26036-1-git-send-email-yalin.wang2010@gmail.com>
Date: Thu, 20 Aug 2015 18:00:09 +0800
From: yalin wang <yalin.wang2010@...il.com>
To: dan.j.williams@...el.com, linux-nvdimm@...ts.01.org,
linux-kernel@...r.kernel.org
Cc: yalin wang <yalin.wang2010@...il.com>
Subject: [PATCH] nvdimm: change to use generic kvfree()
Signed-off-by: yalin wang <yalin.wang2010@...il.com>
---
drivers/nvdimm/dimm_devs.c | 5 +----
1 file changed, 1 insertion(+), 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);
}
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists