summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/firewire/fw-device-cdev.c2
-rw-r--r--drivers/firewire/fw-device-cdev.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/drivers/firewire/fw-device-cdev.c b/drivers/firewire/fw-device-cdev.c
index 68428d013d8d..7b0efccf78f1 100644
--- a/drivers/firewire/fw-device-cdev.c
+++ b/drivers/firewire/fw-device-cdev.c
@@ -359,7 +359,7 @@ static ssize_t ioctl_send_request(struct client *client, void __user *arg)
fw_send_request(device->card, &response->transaction,
request.tcode & 0x1f,
device->node->node_id,
- device->card->generation,
+ request.generation,
device->node->max_speed,
request.offset,
response->response.data, request.length,
diff --git a/drivers/firewire/fw-device-cdev.h b/drivers/firewire/fw-device-cdev.h
index 0cc4b082257f..f1c4b74eb09b 100644
--- a/drivers/firewire/fw-device-cdev.h
+++ b/drivers/firewire/fw-device-cdev.h
@@ -151,6 +151,7 @@ struct fw_cdev_send_request {
__u64 offset;
__u64 closure;
__u64 data;
+ __u32 generation;
};
struct fw_cdev_send_response {