firewire: fix libdc1394/FlyCap2 iso event regression
authorClemens Ladisch <clemens@ladisch.de>
Mon, 22 Jul 2013 19:32:09 +0000 (21:32 +0200)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Sat, 27 Jul 2013 18:24:36 +0000 (20:24 +0200)
commit0699a73af3811b66b1ab5650575acee5eea841ab
treea70a65bf5531642f376c9f542ad7d0ec6ec3e29c
parentbcabcfd2e09ceb8599a33001e812e7cbad00fc4d
firewire: fix libdc1394/FlyCap2 iso event regression

Commit 18d627113b83 (firewire: prevent dropping of completed iso packet
header data) was intended to be an obvious bug fix, but libdc1394 and
FlyCap2 depend on the old behaviour by ignoring all returned information
and thus not noticing that not all packets have been received yet.  The
result was that the video frame buffers would be saved before they
contained the correct data.

Reintroduce the old behaviour for old clients.

Tested-by: Stepan Salenikovich <stepan.salenikovich@gmail.com>
Tested-by: Josep Bosch <jep250@gmail.com>
Cc: <stable@vger.kernel.org> # 3.4+
Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
drivers/firewire/core-cdev.c
drivers/firewire/ohci.c
include/linux/firewire.h
include/uapi/linux/firewire-cdev.h