[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20131227.124309.1704278577980085243.davem@davemloft.net>
Date: Fri, 27 Dec 2013 12:43:09 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: levex@...ux.com
Cc: linux-kernel@...r.kernel.org, federico.vaga@...il.com,
sparclinux@...r.kernel.org
Subject: Re: [PATCH 05/38] sparc: kernel: add missing put_device call
From: Levente Kurusa <levex@...ux.com>
Date: Thu, 19 Dec 2013 16:03:16 +0100
> This is required so that we give up the last reference to the device.
> The kfree() has been removed because put_device will set the underlying kref's
> reference count to zero and hence vio_dev_release will get called resulting in
> kfreeing the structure.
>
> Signed-off-by: Levente Kurusa <levex@...ux.com>
There is no reference held to vdev->dev at this point, that's why
we should directly kfree() it and put_device() is not appropriate.
Pretty much all of your patches have this problem.
--
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