From: Hans de Goede Date: Wed, 26 Oct 2011 08:40:27 +0000 (-0300) Subject: [media] v4l2-event: Remove pending events from fh event queue when unsubscribing X-Git-Tag: v3.2-rc2~15^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=78c87e863bb3350426fecd14912fd0a546c58ec0;p=pandora-kernel.git [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 Acked-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed