saa7164: fix double fetch PCIe access condition
authorSteven Toth <stoth@kernellabs.com>
Tue, 6 Jun 2017 12:30:27 +0000 (09:30 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Aug 2017 15:49:31 +0000 (08:49 -0700)
commit12d17d78e3f74b5022f61eee7d6de082e472a401
treeb696a7b83ba1a6a49fead8ae86a9caa485897401
parent3a63729427acd0ee9f6265d20cf3b9890e8d7a96
saa7164: fix double fetch PCIe access condition

commit 6fb05e0dd32e566facb96ea61a48c7488daa5ac3 upstream.

Avoid a double fetch by reusing the values from the prior transfer.

Originally reported via https://bugzilla.kernel.org/show_bug.cgi?id=195559

Thanks to Pengfei Wang <wpengfeinudt@gmail.com> for reporting.

Signed-off-by: Steven Toth <stoth@kernellabs.com>
Reported-by: Pengfei Wang <wpengfeinudt@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Cc: Eduardo Valentin <eduval@amazon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/media/pci/saa7164/saa7164-bus.c