diff options
author | Hans de Goede <hdegoede@redhat.com> | 2011-10-26 08:40:27 (GMT) |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-11-08 12:29:29 (GMT) |
commit | 78c87e863bb3350426fecd14912fd0a546c58ec0 (patch) | |
tree | bc50ec4ccf077a2753ef23a4d95c1f182b6a66a4 /lib/hexdump.c | |
parent | b36b505965e374b284166c2e6b9c1d369d663ea9 (diff) | |
download | linux-78c87e863bb3350426fecd14912fd0a546c58ec0.tar.xz |
[media] v4l2-event: Remove pending events from fh event queue when unsubscribing
The kev pointers inside the pending events queue (the available queue) of the
fh point to data inside the sev, unsubscribing frees the sev, thus making these
pointers point to freed memory!
This patch fixes these dangling pointers in the available queue by removing
all matching pending events on unsubscription.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'lib/hexdump.c')
0 files changed, 0 insertions, 0 deletions