lkml.org 
[lkml]   [2009]   [Jun]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] firewire: core: use more outbound tlabels
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@s5r6.in-berlin.de>
---
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/


\
 
 \ /
  Last update: 2009-06-14 11:47    [W:0.043 / U:0.168 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site