[PATCH v2 3/8] firewire: cdev: annotate data length in inbound_transaction_resource
From: Takashi Sakamoto
Date: Mon Nov 02 2026 - 23:31:46 EST
The inbound_transaction_resource structure stores the length of its data
in a dedicated member, which can be used with the __counted_by()
annotatnion.
Signed-off-by: Takashi Sakamoto <o-takashi@xxxxxxxxxxxxx>
---
drivers/firewire/core-cdev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/firewire/core-cdev.c b/drivers/firewire/core-cdev.c
index 396b2a722e0e..ebce536ae89f 100644
--- a/drivers/firewire/core-cdev.c
+++ b/drivers/firewire/core-cdev.c
@@ -118,7 +118,7 @@ struct inbound_transaction_resource {
struct fw_card *card;
struct fw_request *request;
bool is_fcp;
- void *data;
+ void *data __counted_by_ptr(length);
size_t length;
};
--
2.53.0