diff options
| author | Devang Kubavat <dkubavat@nvidia.com> | 2021-04-22 00:20:30 -0400 |
|---|---|---|
| committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2021-05-21 09:40:27 -0400 |
| commit | c8476d100544b6944dcd03f709a08a9e2836ad37 (patch) | |
| tree | d4f4931977445145ea8d307ab1a0fe14742415a6 /include | |
| parent | d5b3acfb3039234f2ae807c81091e58031070174 (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')
0 files changed, 0 insertions, 0 deletions
