ipwireless: fix compile failure

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Monday, July 28, 2008 - 3:59 pm

Gitweb:     http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=3684a6...
Commit:     3684a601e4273692b6c80b86e55c728aef675660
Parent:     f934fb19ef34730263e6afc01e8ec27a8a71470f
Author:     James Bottomley <James.Bottomley@HansenPartnership.com>
AuthorDate: Mon Jul 28 17:11:44 2008 -0500
Committer:  Linus Torvalds <torvalds@linux-foundation.org>
CommitDate: Mon Jul 28 15:12:37 2008 -0700

    ipwireless: fix compile failure
    
    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 |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/char/pcmcia/ipwireless/hardware.c b/drivers/char/pcmcia/ipwireless/hardware.c
index 7d500f8..4c1820c 100644
--- a/drivers/char/pcmcia/ipwireless/hardware.c
+++ b/drivers/char/pcmcia/ipwireless/hardware.c
@@ -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);
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
ipwireless: fix compile failure, Linux Kernel Mailing ..., (Mon Jul 28, 3:59 pm)