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

From: Ben Widawsky
Date: Wed Oct 30 2013 - 14:06:49 EST


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@xxxxxxxxxx>

Thanks for fixing this. It was driving me nuts.
Tested-by: Ben Widawsky <ben@xxxxxxxxxxxx>

[snip]
--
Ben Widawsky, Intel Open Source Technology Center
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/