All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] iommu: fix device remove
@ 2017-05-05 18:08 Rob Clark
  2017-05-05 18:24 ` Greg KH
  0 siblings, 1 reply; 5+ messages in thread
From: Rob Clark @ 2017-05-05 18:08 UTC (permalink / raw)
  To: iommu; +Cc: linux-arm-msm, Rob Herring, Rob Clark

It looks like it *used* to make sense to free the device.  But now it is
embedded in 'struct iommu' (which is allocated or embedded in something
that the device allocated).

Spotted when testing qcom_iommu with CONFIG_DEBUG_TEST_DRIVER_REMOVE.

Fixes: 39ab955 ("iommu: Add sysfs bindings for struct iommu_device")
Signed-off-by: Rob Clark <robdclark@gmail.com>
---
 drivers/iommu/iommu-sysfs.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/iommu/iommu-sysfs.c b/drivers/iommu/iommu-sysfs.c
index c58351e..ad19cbb 100644
--- a/drivers/iommu/iommu-sysfs.c
+++ b/drivers/iommu/iommu-sysfs.c
@@ -34,7 +34,6 @@ static const struct attribute_group *iommu_dev_groups[] = {
 
 static void iommu_release_device(struct device *dev)
 {
-	kfree(dev);
 }
 
 static struct class iommu_class = {
-- 
2.9.3

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-05-05 20:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-05 18:08 [PATCH] iommu: fix device remove Rob Clark
2017-05-05 18:24 ` Greg KH
     [not found]   ` <20170505182452.GA3575-U8xfFu+wG4EAvxtiuMwx3w@public.gmane.org>
2017-05-05 18:56     ` Rob Clark
     [not found]       ` <CAF6AEGsTrOJG2+a=vPc8iLDPOK5rxQujS8wuoCEmBhgT7Zpb9w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-05-05 19:58         ` Greg KH
2017-05-05 20:24           ` Rob Clark

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.