From: Greg Kroah-Hartman Date: Fri, 4 Aug 2017 17:18:48 +0000 (-0700) Subject: 4.9-stable patches X-Git-Tag: v4.12.5~19 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9b49356d2683dac1346435d91cacf772889f5602;p=thirdparty%2Fkernel%2Fstable-queue.git 4.9-stable patches added patches: v4l-s5c73m3-fix-negation-operator.patch --- diff --git a/queue-4.9/series b/queue-4.9/series index 326ae1b092a..698cdc5f6a7 100644 --- a/queue-4.9/series +++ b/queue-4.9/series @@ -37,3 +37,4 @@ sched-cgroup-move-sched_online_group-back-into-css_online-to-fix-crash.patch rdma-uverbs-fix-the-check-for-port-number.patch ipmi-watchdog-fix-watchdog-timeout-set-on-reboot.patch dentry-name-snapshots.patch +v4l-s5c73m3-fix-negation-operator.patch diff --git a/queue-4.9/v4l-s5c73m3-fix-negation-operator.patch b/queue-4.9/v4l-s5c73m3-fix-negation-operator.patch new file mode 100644 index 00000000000..86740adc36a --- /dev/null +++ b/queue-4.9/v4l-s5c73m3-fix-negation-operator.patch @@ -0,0 +1,33 @@ +From a2370ba2752538404e363346b339869c9973aeac Mon Sep 17 00:00:00 2001 +From: Andrzej Hajda +Date: Thu, 5 Jan 2017 10:34:07 -0200 +Subject: [media] v4l: s5c73m3: fix negation operator + +From: Andrzej Hajda + +commit a2370ba2752538404e363346b339869c9973aeac upstream. + +Bool values should be negated using logical operators. Using bitwise operators +results in unexpected and possibly incorrect results. + +Reported-by: David Binderman +Signed-off-by: Andrzej Hajda +Signed-off-by: Hans Verkuil +Signed-off-by: Mauro Carvalho Chehab +Signed-off-by: Greg Kroah-Hartman + +--- + drivers/media/i2c/s5c73m3/s5c73m3-ctrls.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/drivers/media/i2c/s5c73m3/s5c73m3-ctrls.c ++++ b/drivers/media/i2c/s5c73m3/s5c73m3-ctrls.c +@@ -211,7 +211,7 @@ static int s5c73m3_3a_lock(struct s5c73m + } + + if ((ctrl->val ^ ctrl->cur.val) & V4L2_LOCK_FOCUS) +- ret = s5c73m3_af_run(state, ~af_lock); ++ ret = s5c73m3_af_run(state, !af_lock); + + return ret; + }