[PATCH] drm/sysfs: Do not drop device reference twice

Ben Widawsky ben at bwidawsk.net
Wed Oct 30 19:06:41 CET 2013


On Wed, Oct 30, 2013 at 11:59:05AM +0100, Thierry Reding wrote:
> device_unregister() already drops its reference to the struct device, so
> explicitly calling put_device() before device_unregister() can cause the
> device to have been freed before it can be unregistered.
> 
> Signed-off-by: Thierry Reding <treding at nvidia.com>

Thanks for fixing this. It was driving me nuts.
Tested-by: Ben Widawsky <ben at bwidawsk.net>

[snip]
-- 
Ben Widawsky, Intel Open Source Technology Center


More information about the dri-devel mailing list