From: Hans Verkuil Date: Tue, 6 Sep 2011 13:23:18 +0000 (-0300) Subject: [media] v4l: Fix use-after-free case in v4l2_device_release X-Git-Tag: v3.1-rc9~16^2~3 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8280b662df96f4172c4972b14a4aec0daf272b8f;p=pandora-kernel.git [media] v4l: Fix use-after-free case in v4l2_device_release Drivers that have no v4l2_device release callback might free the v4l2_device instance in the video_device release callback. Make sure we don't access the v4l2_device instance after it gets freed. Signed-off-by: Laurent Pinchart Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed