Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
media: stm32: dcmi: kcalloc v4l2_async_subdev struct
Upon cleanup of the v4l2 async notify mechanism in __v4l2_async_notifier_cleanup, the asd element provided by the driver is being kfree by the V4L2 framework. Current code was providing a v4l2_async_subdev struct part of the stm32_dcmi struct, leading to kmemleak complaining whenever v4l2_async_notifier_cleanup is called on unbind. Allocate this structure now to avoid this error. Allocation is done via kcalloc (and not devm_kcalloc) on purpose since kfree is used by the framework. Signed-off-by: Alain Volmat <[email protected]> Change-Id: I0159571a792d2009b951e62c768caae17fd9a8da Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/linux-stm32/+/324941 Tested-by: Hugues FRUCHET <[email protected]> Domain-Review: Hugues FRUCHET <[email protected]> Domain-Review: Philippe CORNU <[email protected]> Reviewed-by: Philippe CORNU <[email protected]> Reviewed-by: Hugues FRUCHET <[email protected]> ACI: CITOOLS <[email protected]>
- Loading branch information