diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2012-10-08 17:20:48 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-10-09 13:54:59 -0400 |
commit | 50fb47ae4d812d5eabc57539701dc0fd6404495e (patch) | |
tree | bd798b767f6fde897aedff220bf38ffb11137c86 /drivers/net/wan | |
parent | 1451ae6ef8bff77007338b2870bb3de2658afff8 (diff) |
farsync: fix support for over 30 cards
We're trying to fill a 64 bit bitmap but only the lower 30 shifts work
because the shift wraps around.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wan')
-rw-r--r-- | drivers/net/wan/farsync.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wan/farsync.c b/drivers/net/wan/farsync.c index 1a623183cbe5..b6271325f803 100644 --- a/drivers/net/wan/farsync.c +++ b/drivers/net/wan/farsync.c | |||
@@ -597,7 +597,7 @@ fst_q_work_item(u64 * queue, int card_index) | |||
597 | * bottom half for the card. Note the limitation of 64 cards. | 597 | * bottom half for the card. Note the limitation of 64 cards. |
598 | * That ought to be enough | 598 | * That ought to be enough |
599 | */ | 599 | */ |
600 | mask = 1 << card_index; | 600 | mask = (u64)1 << card_index; |
601 | *queue |= mask; | 601 | *queue |= mask; |
602 | spin_unlock_irqrestore(&fst_work_q_lock, flags); | 602 | spin_unlock_irqrestore(&fst_work_q_lock, flags); |
603 | } | 603 | } |