[PATCH] firewire: core: use more outbound tlabels

From: Stefan Richter
Date: Sun Jun 14 2009 - 05:44:41 EST


This appears to be a typo. Tlabel is a 6 bits wide datum; we should
wrap it after 63 rather than 31.

Signed-off-by: Stefan Richter <stefanr@xxxxxxxxxxxxxxxxx>
---
drivers/firewire/core-transaction.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Index: b/drivers/firewire/core-transaction.c
===================================================================
--- a/drivers/firewire/core-transaction.c
+++ b/drivers/firewire/core-transaction.c
@@ -294,7 +294,7 @@ void fw_send_request(struct fw_card *car
return;
}

- card->current_tlabel = (card->current_tlabel + 1) & 0x1f;
+ card->current_tlabel = (card->current_tlabel + 1) & 0x3f;
card->tlabel_mask |= (1 << tlabel);

t->node_id = destination_id;

--
Stefan Richter
-=====-==--= -==- -===-
http://arcgraph.de/sr/

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/