summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorDevang Kubavat <dkubavat@nvidia.com>2021-04-22 00:20:30 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2021-05-21 09:40:27 -0400
commitc8476d100544b6944dcd03f709a08a9e2836ad37 (patch)
treed4f4931977445145ea8d307ab1a0fe14742415a6 /include/linux
parentd5b3acfb3039234f2ae807c81091e58031070174 (diff)
capture-ivc: Fix race condition to update callback
Added synchronization while update, and unregister the callback for each channel-id. In multi-session scenario, it is observed that RCE freed channel id, and for new session allocate same channel-id again by RCE, but capture driver did not unregister the callback and it returns channel context is busy and it ends up with crash. To fix this issue, added semaphore lock for each channel-id with 2 seconds timeout. Bug 200722166 Change-Id: I62faac721511173487392dc40a8b3a529109206a Signed-off-by: Devang Kubavat <dkubavat@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2518598 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions