Skip to content
Commit d3843fc1 authored by Haibin Liu's avatar Haibin Liu Committed by VijayaKumar T M
Browse files

msm: sensor: Fix crash when ioctl VIDIOC_MSM_SENSOR_INIT_CFG



Issue:
the invalid slave_info is used by msm_sensor_driver_probe.
This cause crash when ioctl VIDIOC_MSM_SENSOR_INIT_CFG repeatedly.

Fix:
1) avoid the same msm_sd_subdev added into the ordered_sd_list.
2) enlarge the buffer size for i2c addr and data.

Change-Id: Idffcd3b82b9590dbfdcaf14b80668cc894178f54
Signed-off-by: default avatarHaibin Liu <haibinl@codeaurora.org>
parent 5619c1dd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment