msm: camera: common: Fix failures in v4l2 unregister during error
Missing video unregister was causing list delete corruption. Also, there were double free errors in Sync and CRM driver. Fix v4l2 issues by adding the missing unregister calls and changing release callback to empty, because we are freeing it during cleanup. Improve logging during bind/unbind to better reflect what is happening. CRs-Fixed: 2584631 Change-Id: Idc5db655d22df54e8bdb470d29896e10f6987796 Signed-off-by: Mukund Madhusudan Atre <matre@codeaurora.org>
This commit is contained in:
@@ -34,7 +34,6 @@
|
||||
* @ent_function: Media entity function type. Can be:
|
||||
* %CAM_IFE_DEVICE_TYPE - identifies as IFE device.
|
||||
* %CAM_ICP_DEVICE_TYPE - identifies as ICP device.
|
||||
* @subdev_node_created: Enabled sub-device
|
||||
*
|
||||
* Each instance of a subdev driver should create this struct, either
|
||||
* stand-alone or embedded in a larger struct. This structure should be
|
||||
@@ -50,7 +49,6 @@ struct cam_subdev {
|
||||
u32 sd_flags;
|
||||
void *token;
|
||||
u32 ent_function;
|
||||
bool subdev_node_created;
|
||||
};
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user