saa7164: fix double fetch PCIe access condition
authorSteven Toth <stoth@kernellabs.com>
Tue, 6 Jun 2017 12:30:27 +0000 (09:30 -0300)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 12 Oct 2017 14:27:19 +0000 (15:27 +0100)
commit10c59d27363eba9fece1965293f83d865ba532be
treeff05b3ff7ce16a0e19d275f2a01835c11c21f496
parenta5d697c89499179061927c2cec23b078c60d595b
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>
[bwh: Backported to 3.2: adjust filename]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/media/video/saa7164/saa7164-bus.c