+ bcm43xx-fix-iwmode-crash-when-down.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled

     bcm43xx: fix iwmode crash when down

has been added to the -mm tree.  Its filename is

     bcm43xx-fix-iwmode-crash-when-down.patch

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this


From: Michael Buesch <mb@xxxxxxxxx>

This fixes a crash when `iwconfig ethX mode foo' is done before `ifconfig ethX
up' or after `ifconfig ethX down'.

Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 drivers/net/wireless/bcm43xx/bcm43xx_wx.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff -puN drivers/net/wireless/bcm43xx/bcm43xx_wx.c~bcm43xx-fix-iwmode-crash-when-down drivers/net/wireless/bcm43xx/bcm43xx_wx.c
--- 25/drivers/net/wireless/bcm43xx/bcm43xx_wx.c~bcm43xx-fix-iwmode-crash-when-down	Mon May  1 13:32:08 2006
+++ 25-akpm/drivers/net/wireless/bcm43xx/bcm43xx_wx.c	Mon May  1 13:32:08 2006
@@ -182,8 +182,11 @@ static int bcm43xx_wx_set_mode(struct ne
 		mode = BCM43xx_INITIAL_IWMODE;
 
 	bcm43xx_lock_mmio(bcm, flags);
-	if (bcm->ieee->iw_mode != mode)
-		bcm43xx_set_iwmode(bcm, mode);
+	if (bcm->initialized) {
+		if (bcm->ieee->iw_mode != mode)
+			bcm43xx_set_iwmode(bcm, mode);
+	} else
+		bcm->ieee->iw_mode = mode;
 	bcm43xx_unlock_mmio(bcm, flags);
 
 	return 0;
_

Patches currently in -mm which might be from mb@xxxxxxxxx are

bcm43xx-fix-iwmode-crash-when-down.patch
git-netdev-all.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux