]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
4.4-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Aug 2017 17:18:41 +0000 (10:18 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Aug 2017 17:18:41 +0000 (10:18 -0700)
added patches:
v4l-s5c73m3-fix-negation-operator.patch

queue-4.4/series
queue-4.4/v4l-s5c73m3-fix-negation-operator.patch [new file with mode: 0644]

index 2f5d9f7cc5d1d2750d0e403323c98ccdd3b8b1e1..27b1e59ae2db93f5e1f8b16d903ec24d11c114af 100644 (file)
@@ -38,3 +38,4 @@ rdma-uverbs-fix-the-check-for-port-number.patch
 libnvdimm-btt-fix-btt_rw_page-not-returning-errors.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.4/v4l-s5c73m3-fix-negation-operator.patch b/queue-4.4/v4l-s5c73m3-fix-negation-operator.patch
new file mode 100644 (file)
index 0000000..86740ad
--- /dev/null
@@ -0,0 +1,33 @@
+From a2370ba2752538404e363346b339869c9973aeac Mon Sep 17 00:00:00 2001
+From: Andrzej Hajda <a.hajda@samsung.com>
+Date: Thu, 5 Jan 2017 10:34:07 -0200
+Subject: [media] v4l: s5c73m3: fix negation operator
+
+From: Andrzej Hajda <a.hajda@samsung.com>
+
+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 <dcb314@hotmail.com>
+Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
+Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
+Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ 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;
+ }