From aa451d3740550587a2c236fd03101a7a3581c358 Mon Sep 17 00:00:00 2001 From: shizhenghui Date: Fri, 31 May 2024 10:51:47 +0800 Subject: [PATCH] video/v4l2_cap: fix use after free Signed-off-by: shizhenghui --- 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