[PATCH 4/9] firewire: cdev: annotate data length in inbound_transaction_resource

From: Takashi Sakamoto

Date: Sun Nov 01 2026 - 23:22:00 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 418b72cb8835..cbf61dc06971 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