diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2011-04-30 10:34:05 -0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-05-21 15:13:31 -0700 |
commit | 9e7b09d09931b8ef2d1e46335bc41eff5ff0d23a (patch) | |
tree | 9655360b3a3cee1b673d453289fca630e3a8fff5 /arch | |
parent | 55285e0fd90b9cf00276f66bb491e28ecdee11d9 (diff) |
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>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions