Skip to content

Commit

Permalink
Merge branch 'fixes-jgarzik' of git://git.kernel.org/pub/scm/linux/ke…
Browse files Browse the repository at this point in the history
…rnel/git/linville/wireless-2.6 into upstream-fixes
  • Loading branch information
Jeff Garzik committed Jan 18, 2008
2 parents e236ed2 + d101f64 commit 9559cc2
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 12 deletions.
11 changes: 6 additions & 5 deletions drivers/net/wireless/b43/rfkill.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,11 @@ void b43_rfkill_init(struct b43_wldev *dev)
rfk->rfkill->user_claim_unsupported = 1;

rfk->poll_dev = input_allocate_polled_device();
if (!rfk->poll_dev)
goto err_free_rfk;
if (!rfk->poll_dev) {
rfkill_free(rfk->rfkill);
goto err_freed_rfk;
}

rfk->poll_dev->private = dev;
rfk->poll_dev->poll = b43_rfkill_poll;
rfk->poll_dev->poll_interval = 1000; /* msecs */
Expand Down Expand Up @@ -175,8 +178,7 @@ void b43_rfkill_init(struct b43_wldev *dev)
err_free_polldev:
input_free_polled_device(rfk->poll_dev);
rfk->poll_dev = NULL;
err_free_rfk:
rfkill_free(rfk->rfkill);
err_freed_rfk:
rfk->rfkill = NULL;
out_error:
rfk->registered = 0;
Expand All @@ -195,6 +197,5 @@ void b43_rfkill_exit(struct b43_wldev *dev)
rfkill_unregister(rfk->rfkill);
input_free_polled_device(rfk->poll_dev);
rfk->poll_dev = NULL;
rfkill_free(rfk->rfkill);
rfk->rfkill = NULL;
}
6 changes: 3 additions & 3 deletions drivers/net/wireless/hostap/hostap_plx.c
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ static void prism2_plx_remove(struct pci_dev *pdev)

MODULE_DEVICE_TABLE(pci, prism2_plx_id_table);

static struct pci_driver prism2_plx_drv_id = {
static struct pci_driver prism2_plx_driver = {
.name = "hostap_plx",
.id_table = prism2_plx_id_table,
.probe = prism2_plx_probe,
Expand All @@ -618,13 +618,13 @@ static struct pci_driver prism2_plx_drv_id = {

static int __init init_prism2_plx(void)
{
return pci_register_driver(&prism2_plx_drv_id);
return pci_register_driver(&prism2_plx_driver);
}


static void __exit exit_prism2_plx(void)
{
pci_unregister_driver(&prism2_plx_drv_id);
pci_unregister_driver(&prism2_plx_driver);
}


Expand Down
2 changes: 1 addition & 1 deletion drivers/net/wireless/ipw2200.c
Original file line number Diff line number Diff line change
Expand Up @@ -4935,7 +4935,7 @@ static int ipw_queue_reset(struct ipw_priv *priv)
/**
* Reclaim Tx queue entries no more used by NIC.
*
* When FW adwances 'R' index, all entries between old and
* When FW advances 'R' index, all entries between old and
* new 'R' index need to be reclaimed. As result, some free space
* forms. If there is enough free space (> low mark), wake Tx queue.
*
Expand Down
4 changes: 4 additions & 0 deletions drivers/net/wireless/libertas/if_sdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -871,6 +871,10 @@ static int if_sdio_probe(struct sdio_func *func,
if (sscanf(func->card->info[i],
"ID: %x", &model) == 1)
break;
if (!strcmp(func->card->info[i], "IBIS Wireless SDIO Card")) {
model = 4;
break;
}
}

if (i == func->card->num_info) {
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/wireless/rt2x00/rt2x00pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ void rt2x00pci_rxdone(struct rt2x00_dev *rt2x00dev)
* The data behind the ieee80211 header must be
* aligned on a 4 byte boundary.
*/
align = NET_IP_ALIGN + (2 * (header_size % 4 == 0));
align = header_size % 4;

/*
* Allocate the sk_buffer, initialize it and copy
Expand Down
11 changes: 9 additions & 2 deletions drivers/net/wireless/rt2x00/rt2x00usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -245,13 +245,20 @@ static void rt2x00usb_interrupt_rxdone(struct urb *urb)
* Allocate a new sk buffer to replace the current one.
* If allocation fails, we should drop the current frame
* so we can recycle the existing sk buffer for the new frame.
* As alignment we use 2 and not NET_IP_ALIGN because we need
* to be sure we have 2 bytes room in the head. (NET_IP_ALIGN
* can be 0 on some hardware). We use these 2 bytes for frame
* alignment later, we assume that the chance that
* header_size % 4 == 2 is bigger then header_size % 2 == 0
* and thus optimize alignment by reserving the 2 bytes in
* advance.
*/
frame_size = entry->ring->data_size + entry->ring->desc_size;
skb = dev_alloc_skb(frame_size + NET_IP_ALIGN);
skb = dev_alloc_skb(frame_size + 2);
if (!skb)
goto skip_entry;

skb_reserve(skb, NET_IP_ALIGN);
skb_reserve(skb, 2);
skb_put(skb, frame_size);

/*
Expand Down

0 comments on commit 9559cc2

Please sign in to comment.