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 16:08:51 +0000 (09:08 -0700)
commitdeae9956cfb42f3d480c71f416f934d3ce84c033
tree36b0dccd953750ec08022949775bdd7b4c0c8ad9
parente0f39019aa3fabfe0c0775f2a1f9bd66aceb55d0
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