msm: camera: isp: Fix potential illegal access in Acquire HW.

Fix for above

Change-Id: I524598236aec47f3e80ef0325326ee75a809b197
Signed-off-by: Ajith Rajana <rajana@qti.qualcomm.com>
This commit is contained in:
Ajith Rajana 2025-09-05 23:01:11 +05:30 • committed by Prateek Pallav
commit 7e0e214538

View file

@ -854,7 +854,7 @@ int cam_node_handle_ioctl(struct cam_node *node, struct cam_control *cmd)
"Unmatched struct api version %u and struct version %u",
api_version, struct_version);
rc = -EINVAL;
goto acquire_free;
goto acquire_kfree;
}
rc = __cam_node_handle_acquire_hw_v1(node, acquire_ptr);
@ -871,7 +871,7 @@ int cam_node_handle_ioctl(struct cam_node *node, struct cam_control *cmd)
"Unmatched struct api version %u and struct version %u",
api_version, struct_version);
rc = -EINVAL;
goto acquire_free;
goto acquire_kfree;
}
rc = __cam_node_handle_acquire_hw_v2(node, acquire_ptr);