]> git.karo-electronics.de Git - karo-tx-linux.git/commit
v4l: Release module if subdev registration fails
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Sat, 30 Apr 2011 13:34:05 +0000 (10:34 -0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 21 May 2011 22:13:31 +0000 (15:13 -0700)
commit9e7b09d09931b8ef2d1e46335bc41eff5ff0d23a
tree9655360b3a3cee1b673d453289fca630e3a8fff5
parent55285e0fd90b9cf00276f66bb491e28ecdee11d9
v4l: Release module if subdev registration fails

commit b7534f002d3c81d18abfbf57179d07d3ec763bb5 upstream.

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 <laurent.pinchart@ideasonboard.com>
Acked-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/media/video/v4l2-device.c