firewire: check cdev response length
authorClemens Ladisch <clemens@ladisch.de>
Wed, 19 May 2010 06:28:32 +0000 (08:28 +0200)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Wed, 9 Jun 2010 17:42:18 +0000 (19:42 +0200)
commita10c0ce76098857b899505d05de9f2e13ddf7a7a
tree130592c6baaff2e38dd813448337dded1ee1645b
parent262444eecce40950af19ea4d75a3dc03b3c07283
firewire: check cdev response length

Add a check that the data length in the SEND_RESPONSE ioctl is correct.
Incidentally, this also fixes the previously wrong response length of
software-handled lock requests.

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/core-transaction.c
drivers/firewire/core.h