diff options
author | blogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-10-05 10:12:53 +0000 |
---|---|---|
committer | blogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-10-05 10:12:53 +0000 |
commit | 5c105d9f3fd086aff195d3849dcf847d6b0bd927 (patch) | |
tree | 1229a11f725bfa58aa7c57a76898553bb5f6654a /package/madwifi/patches/434-name-alloc-fix.patch | |
download | openwrt-5c105d9f3fd086aff195d3849dcf847d6b0bd927.tar.gz openwrt-5c105d9f3fd086aff195d3849dcf847d6b0bd927.zip |
branch Attitude Adjustment
git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@33625 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/madwifi/patches/434-name-alloc-fix.patch')
-rw-r--r-- | package/madwifi/patches/434-name-alloc-fix.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/package/madwifi/patches/434-name-alloc-fix.patch b/package/madwifi/patches/434-name-alloc-fix.patch new file mode 100644 index 000000000..ab277630d --- /dev/null +++ b/package/madwifi/patches/434-name-alloc-fix.patch @@ -0,0 +1,28 @@ +--- a/ath/if_ath_ahb.c ++++ b/ath/if_ath_ahb.c +@@ -311,6 +311,11 @@ init_ath_wmac(u_int16_t devid, u_int16_t + SET_MODULE_OWNER(dev); + sclist[wlanNum] = sc; + ++ if (dev_alloc_name(dev, dev->name) < 0) { ++ printk(KERN_ERR "%s: cannot allocate name\n", dev_info); ++ goto bad3; ++ } ++ + switch (wlanNum) { + case AR531X_WLAN0_NUM: + if (((devid & AR5315_REV_MAJ_M) == AR5315_REV_MAJ) || +--- a/ath/if_ath_pci.c ++++ b/ath/if_ath_pci.c +@@ -236,6 +236,11 @@ ath_pci_probe(struct pci_dev *pdev, cons + */ + sc->aps_sc.sc_invalid = 1; + ++ if (dev_alloc_name(dev, dev->name) < 0) { ++ printk(KERN_ERR "%s: cannot allocate name\n", dev_info); ++ goto bad3; ++ } ++ + dev->irq = pdev->irq; + + SET_MODULE_OWNER(dev); |