From: Laurent Pinchart Date: Sat, 30 Apr 2011 13:34:05 +0000 (-0300) Subject: [media] v4l: Release module if subdev registration fails X-Git-Tag: v2.6.39~5^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b7534f002d3c81d18abfbf57179d07d3ec763bb5;p=pandora-kernel.git [media] v4l: Release module if subdev registration fails If v4l2_device_register_subdev() fails, the reference to the subdev module taken by the function isn't released. Fix this. Signed-off-by: Laurent Pinchart Cc: stable@kernel.org Acked-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed