diff options
| author | Max Kellermann <max.kellermann@gmail.com> | 2016-08-09 18:33:03 -0300 |
|---|---|---|
| committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2016-11-18 15:29:27 -0200 |
| commit | e7cd17a29d72868aa5cfbbd4de7c54a28ed30ff0 (patch) | |
| tree | 29b9bdca185608f2d8f29879fc4c0efeeb6c56fc /tools/perf/scripts/python/bin | |
| parent | [media] media-entity: clear media_gobj.mdev in _destroy() (diff) | |
| download | linux-e7cd17a29d72868aa5cfbbd4de7c54a28ed30ff0.tar.gz linux-e7cd17a29d72868aa5cfbbd4de7c54a28ed30ff0.zip | |
[media] drivers/media/media-device: fix double free bug in _unregister()
While removing all interfaces in media_device_unregister(), all
media_interface pointers are freed. This is illegal and results in
double kfree() if any media_interface is still linked at this point;
maybe because a userspace process still has a file handle. Once the
process closes the file handle, dvb_media_device_free() gets called,
which frees the dvb_device.intf_devnode again.
This patch removes the unnecessary kfree() call, and documents who's
responsible for really freeing it.
Signed-off-by: Max Kellermann <max.kellermann@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
