mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2024-10-01 01:35:54 -04:00
34 lines
1.3 KiB
Diff
34 lines
1.3 KiB
Diff
From 9656e2c2b3523af20502bf1e933e35a397f5e82f Mon Sep 17 00:00:00 2001
|
|
From: Rajesh Bondugula <rajeshb@codeaurora.org>
|
|
Date: Mon, 4 May 2015 12:05:20 -0700
|
|
Subject: msm: camera: sensor: Fix the improper pointer dereference
|
|
|
|
Pass flash_ctrl to msm_torch_create_classdev
|
|
instead of &flash_ctrl.
|
|
This change will fix the improper pointer
|
|
dereference issue. msm_torch_create_classdev needs
|
|
flash_ctrl pointer to retrieve torch informaiton.
|
|
|
|
Change-Id: I05bf130b2161336e93122d7e918a4c48a6b381e2
|
|
Signed-off-by: Rajesh Bondugula <rajeshb@codeaurora.org>
|
|
---
|
|
drivers/media/platform/msm/camera_v2/sensor/flash/msm_flash.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/drivers/media/platform/msm/camera_v2/sensor/flash/msm_flash.c b/drivers/media/platform/msm/camera_v2/sensor/flash/msm_flash.c
|
|
index 864bf63..0faec90 100644
|
|
--- a/drivers/media/platform/msm/camera_v2/sensor/flash/msm_flash.c
|
|
+++ b/drivers/media/platform/msm/camera_v2/sensor/flash/msm_flash.c
|
|
@@ -1192,7 +1192,7 @@ static int32_t msm_flash_platform_probe(struct platform_device *pdev)
|
|
flash_ctrl->msm_sd.sd.devnode->fops = &msm_flash_v4l2_subdev_fops;
|
|
|
|
if (flash_ctrl->flash_driver_type == FLASH_DRIVER_PMIC)
|
|
- rc = msm_torch_create_classdev(pdev, &flash_ctrl);
|
|
+ rc = msm_torch_create_classdev(pdev, flash_ctrl);
|
|
|
|
CDBG("probe success\n");
|
|
return rc;
|
|
--
|
|
cgit v1.1
|
|
|