Searched hist:c90aab9c (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/base/ |
H A D | platform.c | c90aab9c Mon Jul 25 09:13:32 CDT 2016 Jerome Marchand <jmarchan@redhat.com> platform driver: fix use-after-free in platform_device_del()
In platform_device_del(), the device is still used after a call to device_del(). At this point there is no guarantee that the device is still there and there could be a use-after-free access. Move the call to device_remove_properties() before device_del() to fix that.
Signed-off-by: Jerome Marchand <jmarchan@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> c90aab9c Mon Jul 25 09:13:32 CDT 2016 Jerome Marchand <jmarchan@redhat.com> platform driver: fix use-after-free in platform_device_del() In platform_device_del(), the device is still used after a call to device_del(). At this point there is no guarantee that the device is still there and there could be a use-after-free access. Move the call to device_remove_properties() before device_del() to fix that. Signed-off-by: Jerome Marchand <jmarchan@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
|