diff options
author | Clemens Ladisch <clemens@ladisch.de> | 2010-05-19 02:28:32 -0400 |
---|---|---|
committer | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2010-06-09 13:42:18 -0400 |
commit | a10c0ce76098857b899505d05de9f2e13ddf7a7a (patch) | |
tree | 130592c6baaff2e38dd813448337dded1ee1645b /drivers/firewire/core.h | |
parent | 262444eecce40950af19ea4d75a3dc03b3c07283 (diff) |
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>
Diffstat (limited to 'drivers/firewire/core.h')
-rw-r--r-- | drivers/firewire/core.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/firewire/core.h b/drivers/firewire/core.h index 0ecfcd95f4c5..25a72e57a0cd 100644 --- a/drivers/firewire/core.h +++ b/drivers/firewire/core.h | |||
@@ -218,6 +218,7 @@ static inline bool is_next_generation(int new_generation, int old_generation) | |||
218 | 218 | ||
219 | void fw_core_handle_request(struct fw_card *card, struct fw_packet *request); | 219 | void fw_core_handle_request(struct fw_card *card, struct fw_packet *request); |
220 | void fw_core_handle_response(struct fw_card *card, struct fw_packet *packet); | 220 | void fw_core_handle_response(struct fw_card *card, struct fw_packet *packet); |
221 | int fw_get_response_length(struct fw_request *request); | ||
221 | void fw_fill_response(struct fw_packet *response, u32 *request_header, | 222 | void fw_fill_response(struct fw_packet *response, u32 *request_header, |
222 | int rcode, void *payload, size_t length); | 223 | int rcode, void *payload, size_t length); |
223 | void fw_send_phy_config(struct fw_card *card, | 224 | void fw_send_phy_config(struct fw_card *card, |