View | Details | Raw Unified | Return to bug 109951
Collapse All | Expand All

(-)a/drivers/staging/rtl8192u/r8192U_core.c (-9 / +13 lines)
Lines 1092-1101 static int rtl8192_hard_start_xmit(struct sk_buff *skb, struct net_device *dev) Link Here
1092
static void rtl8192_tx_isr(struct urb *tx_urb)
1092
static void rtl8192_tx_isr(struct urb *tx_urb)
1093
{
1093
{
1094
	struct sk_buff *skb = (struct sk_buff *)tx_urb->context;
1094
	struct sk_buff *skb = (struct sk_buff *)tx_urb->context;
1095
	struct net_device *dev = (struct net_device *)(skb->cb);
1095
	struct net_device *dev;
1096
	struct r8192_priv *priv = NULL;
1096
	struct r8192_priv *priv = NULL;
1097
	cb_desc *tcb_desc = (cb_desc *)(skb->cb + MAX_DEV_ADDR_SIZE);
1097
	cb_desc *tcb_desc;
1098
	u8  queue_index = tcb_desc->queue_index;
1098
	u8  queue_index;
1099
1100
	if (!skb)
1101
		return;
1102
1103
	dev = (struct net_device *)(skb->cb);
1104
	tcb_desc = (cb_desc *)(skb->cb + MAX_DEV_ADDR_SIZE);
1105
	queue_index = tcb_desc->queue_index;
1099
1106
1100
	priv = ieee80211_priv(dev);
1107
	priv = ieee80211_priv(dev);
1101
1108
Lines 1113-1123 static void rtl8192_tx_isr(struct urb *tx_urb) Link Here
1113
	}
1120
	}
1114
1121
1115
	/* free skb and tx_urb */
1122
	/* free skb and tx_urb */
1116
	if (skb != NULL) {
1123
	dev_kfree_skb_any(skb);
1117
		dev_kfree_skb_any(skb);
1124
	usb_free_urb(tx_urb);
1118
		usb_free_urb(tx_urb);
1125
	atomic_dec(&priv->tx_pending[queue_index]);
1119
		atomic_dec(&priv->tx_pending[queue_index]);
1120
	}
1121
1126
1122
	/*
1127
	/*
1123
	 * Handle HW Beacon:
1128
	 * Handle HW Beacon:
1124
- 

Return to bug 109951