[9610] fimc-is2: fix prevent defect (cid: 270171)
authorWooyeon Kim <wooy88.kim@samsung.com>
Thu, 25 Apr 2019 04:10:47 +0000 (13:10 +0900)
committerKim Gunho <gunho.kim@samsung.com>
Fri, 28 Jun 2019 14:45:26 +0000 (23:45 +0900)
 - 270171: out-of-bounds read

 PR JIRA ID: CPR-995

Change-Id: I9f7316908f36f25ee9a1f0fd6d5a2e9cbdd997a6
Signed-off-by: Wooyeon Kim <wooy88.kim@samsung.com>
drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-subdev-mcsp.c

index d288dd8a38fb43580850cb85f1cabff9a5f26916..ebec66e4534a0851fcf088b38ee48bb82467d02a 100644 (file)
@@ -483,14 +483,6 @@ static int fimc_is_ischain_mxp_tag(struct fimc_is_subdev *subdev,
                index = PARAM_MCS_OUTPUT3;
                target_addr = ldr_frame->sc3TargetAddress;
                break;
-       case FIMC_IS_VIDEO_M4P_NUM:
-               index = PARAM_MCS_OUTPUT4;
-               target_addr = ldr_frame->sc4TargetAddress;
-               break;
-       case FIMC_IS_VIDEO_M5P_NUM:
-               index = PARAM_MCS_OUTPUT5;
-               target_addr = ldr_frame->sc5TargetAddress;
-               break;
        default:
                mserr("vid(%d) is not matched", device, subdev, node->vid);
                ret = -EINVAL;