projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5375659
)
V4L/DVB: Fix test in copy_reg_bits()
author
Roel Kluin
<roel.kluin@gmail.com>
Fri, 20 Nov 2009 18:34:13 +0000
(15:34 -0300)
committer
Mauro Carvalho Chehab
<mchehab@redhat.com>
Sat, 5 Dec 2009 20:41:45 +0000
(18:41 -0200)
The reg_pair2[j].reg was tested twice.
Cc: <stable@kernel.org>
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Acked-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/common/tuners/mxl5007t.c
patch
|
blob
|
history
diff --git
a/drivers/media/common/tuners/mxl5007t.c
b/drivers/media/common/tuners/mxl5007t.c
index 2d02698d4f4fd8c9d87c6864b027432e138972c6..7eb1bf75cd072ae634b816a8a496ccfd8a559127 100644
(file)
--- a/
drivers/media/common/tuners/mxl5007t.c
+++ b/
drivers/media/common/tuners/mxl5007t.c
@@
-196,7
+196,7
@@
static void copy_reg_bits(struct reg_pair_t *reg_pair1,
i = j = 0;
while (reg_pair1[i].reg || reg_pair1[i].val) {
- while (reg_pair2[j].reg || reg_pair2[j].
reg
) {
+ while (reg_pair2[j].reg || reg_pair2[j].
val
) {
if (reg_pair1[i].reg != reg_pair2[j].reg) {
j++;
continue;