This is an automated email from the ASF dual-hosted git repository.

acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit aa451d3740550587a2c236fd03101a7a3581c358
Author: shizhenghui <shizheng...@xiaomi.com>
AuthorDate: Fri May 31 10:51:47 2024 +0800

    video/v4l2_cap: fix use after free
    
    Signed-off-by: shizhenghui <shizheng...@xiaomi.com>
---
 drivers/video/v4l2_cap.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/video/v4l2_cap.c b/drivers/video/v4l2_cap.c
index 6b36410cf7..79ed399deb 100644
--- a/drivers/video/v4l2_cap.c
+++ b/drivers/video/v4l2_cap.c
@@ -3716,8 +3716,6 @@ static int capture_unlink(FAR struct inode *inode)
       nxmutex_unlock(&cmng->lock_open_num);
     }
 
-  nxmutex_destroy(&cmng->lock_open_num);
-
   return OK;
 }
 #endif

Reply via email to