diff options
| author | Laurent Pinchart <[email protected]> | 2012-11-24 21:35:48 -0300 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2013-01-05 01:25:22 -0200 |
| commit | 317efce991620adc589b3005b9baed433dcb2a56 (patch) | |
| tree | 606c6efb344bebba61573b965fa537dc44dc428f /tools/perf/scripts/python | |
| parent | 90271964c96f89862b3e06e184e770e16cca7c8f (diff) | |
[media] v4l: Reset subdev v4l2_dev field to NULL if registration fails
When subdev registration fails the subdev v4l2_dev field is left to a
non-NULL value. Later calls to v4l2_device_unregister_subdev() will
consider the subdev as registered and will module_put() the subdev
module without any matching module_get().
Fix this by setting the subdev v4l2_dev field to NULL in
v4l2_device_register_subdev() when the function fails.
Signed-off-by: Laurent Pinchart <[email protected]>
Cc: [email protected]
Acked-by: Sylwester Nawrocki <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions