camera: generic_sensor v0.1.9
authorddl <ddl@rock-chips.com>
Fri, 28 Jun 2013 03:16:15 +0000 (11:16 +0800)
committerddl <ddl@rock-chips.com>
Fri, 28 Jun 2013 03:16:15 +0000 (11:16 +0800)
drivers/media/video/generic_sensor.c
drivers/media/video/generic_sensor.h

index ec12fb506cb312c916b0dab7b2f1867656318a45..00e26c6f6ac677e69fa773caa56825b7ce637222 100755 (executable)
 *        add support flash control;\r
 *\r
 *v0.1.5/v0.1.7:\r
-*        fix use v4l2_mbus_framefmt.reserved array overflow in generic_sensor_s_fmt;        \r
+*        fix use v4l2_mbus_framefmt.reserved array overflow in generic_sensor_s_fmt;  \r
+*v0.1.9:\r
+*        fix sensor_find_ctrl may be overflow;\r
 */\r
-static int version = KERNEL_VERSION(0,1,7);\r
+static int version = KERNEL_VERSION(0,1,9);\r
 module_param(version, int, S_IRUGO);\r
 \r
 \r
index 5ea8e46a53652020ffde93bc87b30f5deaeea129..8b77a356e473f157e3455e48c82a30a432f27ea9 100755 (executable)
@@ -421,7 +421,7 @@ static inline struct sensor_v4l2ctrl_info_s* sensor_find_ctrl(
 {\r
        int i;\r
 \r
-       for (i = 0; i < ops[i].num_ctrls; i++)\r
+       for (i = 0; i < ops[0].num_ctrls; i++)\r
                if (ops[i].qctrl->id == id)\r
                        return &ops[i];\r
 \r