diff options
author | Jerome Marchand | 2016-07-25 16:13:32 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2016-08-31 15:13:56 +0200 |
commit | c90aab9c96c2a7f7bf3f7a54167dc5c0ba2b178c (patch) | |
tree | e8fddbf53d62ad80abdad94327453010567bef2c /kernel | |
parent | driver core: add test of driver remove calls during probe (diff) | |
download | kernel-qcow2-linux-c90aab9c96c2a7f7bf3f7a54167dc5c0ba2b178c.tar.gz kernel-qcow2-linux-c90aab9c96c2a7f7bf3f7a54167dc5c0ba2b178c.tar.xz kernel-qcow2-linux-c90aab9c96c2a7f7bf3f7a54167dc5c0ba2b178c.zip |
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>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions