ipwireless: fix compile failure
authorJames Bottomley <James.Bottomley@HansenPartnership.com>
Mon, 28 Jul 2008 22:11:44 +0000 (17:11 -0500)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 28 Jul 2008 22:12:37 +0000 (15:12 -0700)
There's a brown paper bag compile failure introduced by this patch

commit a01386924874c4d6d67f8a34e66f04452c2abb69
Author: David Sterba <dsterba@suse.cz>
Date:   Mon Jul 28 16:53:32 2008 +0200

    ipwireless: Preallocate received packet buffers with MRU size

Really, it can't ever have been even compile tested.  It looks like the
closing bracket is in the wrong place, so this is the fix.

Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/pcmcia/ipwireless/hardware.c

index 7d500f82195a08b22d1ab550ab95bb43e541dd7a..4c1820cad71230045624f002368c6c03efbd0061 100644 (file)
@@ -568,7 +568,7 @@ static struct ipw_rx_packet *pool_allocate(struct ipw_hardware *hw,
                        list_del(&packet->queue);
                } else {
                        const int min_capacity =
-                               ipwireless_ppp_mru(hw->network + 2);
+                               ipwireless_ppp_mru(hw->network) + 2;
                        int new_capacity;
 
                        spin_unlock_irqrestore(&hw->lock, flags);