mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-24 10:11:26 +03:00
This patch implements the following improvements: 1. Add proper NULL pointer checks to prevent dereferencing NULL pointers 2. Break down the isp_capture_setup function into smaller, more manageable chunks to improve readability and error handling 3. Consistently set error codes before jumping to failure handling 4. Standardize the use of goto statements for error cases 5. Improve error logging using dev_err() to provide more context for debugging Bug 4778298 Jira CAMERASW-27054 Change-Id: I62ff4868b81107ac41e8561729cf1b9bede6c909 Signed-off-by: ayush <ajef@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3220092 (cherry picked from commit 905ff68fe62a42685a97402e58a1fa3cbcab28f4) Change-Id: I7ec8f31ce058f2658d776080c62e44dd5b190463 Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3250557 Tested-by: Ayush Jef <ajef@nvidia.com> GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com> Reviewed-by: Bitan Biswas <bbiswas@nvidia.com> Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: Semi Malinen <smalinen@nvidia.com> Reviewed-by: Frank Chen <frankc@nvidia.com>