Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Dan Carpenter and committed by
David S. Miller
50fb47ae 1451ae6e

+1 -1
+1 -1
drivers/net/wan/farsync.c
··· 597 597 * bottom half for the card. Note the limitation of 64 cards. 598 598 * That ought to be enough 599 599 */ 600 - mask = 1 << card_index; 600 + mask = (u64)1 << card_index; 601 601 *queue |= mask; 602 602 spin_unlock_irqrestore(&fst_work_q_lock, flags); 603 603 }