Skip to content

Commit 516bd66

Browse files
committed
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: (24 commits) bridge: Partially disable netpoll support tcp: fix crash in tcp_xmit_retransmit_queue IPv6: fix CoA check in RH2 input handler (mip6_rthdr_input()) ibmveth: lost IRQ while closing/opening device leads to service loss rt2x00: Fix lockdep warning in rt2x00lib_probe_dev() vhost: avoid pr_err on condition guest can trigger ipmr: Don't leak memory if fib lookup fails. vhost-net: avoid flush under lock net: fix problem in reading sock TX queue net/core: neighbour update Oops net: skb_tx_hash() fix relative to skb_orphan_try() rfs: call sock_rps_record_flow() in tcp_splice_read() xfrm: do not assume that template resolving always returns xfrms hostap_pci: set dev->base_addr during probe axnet_cs: use spin_lock_irqsave in ax_interrupt dsa: Fix Kconfig dependencies. act_nat: not all of the ICMP packets need an IP header payload r8169: incorrect identifier for a 8168dp Phonet: fix skb leak in pipe endpoint accept() Bluetooth: Update sec_level/auth_type for already existing connections ...
2 parents 844b9a8 + 573201f commit 516bd66

24 files changed

Lines changed: 108 additions & 71 deletions

File tree

‎drivers/net/ibmveth.c‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,7 @@ static int ibmveth_close(struct net_device *netdev)
677677
if (!adapter->pool_config)
678678
netif_stop_queue(netdev);
679679

680-
free_irq(netdev->irq, netdev);
680+
h_vio_signal(adapter->vdev->unit_address, VIO_IRQ_DISABLE);
681681

682682
do {
683683
lpar_rc = h_free_logical_lan(adapter->vdev->unit_address);
@@ -689,6 +689,8 @@ static int ibmveth_close(struct net_device *netdev)
689689
lpar_rc);
690690
}
691691

692+
free_irq(netdev->irq, netdev);
693+
692694
adapter->rx_no_buffer = *(u64*)(((char*)adapter->buffer_list_addr) + 4096 - 8);
693695

694696
ibmveth_cleanup(adapter);

‎drivers/net/pcmcia/axnet_cs.c‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1168,6 +1168,7 @@ static irqreturn_t ax_interrupt(int irq, void *dev_id)
11681168
int interrupts, nr_serviced = 0, i;
11691169
struct ei_device *ei_local;
11701170
int handled = 0;
1171+
unsigned long flags;
11711172

11721173
e8390_base = dev->base_addr;
11731174
ei_local = netdev_priv(dev);
@@ -1176,7 +1177,7 @@ static irqreturn_t ax_interrupt(int irq, void *dev_id)
11761177
* Protect the irq test too.
11771178
*/
11781179

1179-
spin_lock(&ei_local->page_lock);
1180+
spin_lock_irqsave(&ei_local->page_lock, flags);
11801181

11811182
if (ei_local->irqlock)
11821183
{
@@ -1188,7 +1189,7 @@ static irqreturn_t ax_interrupt(int irq, void *dev_id)
11881189
dev->name, inb_p(e8390_base + EN0_ISR),
11891190
inb_p(e8390_base + EN0_IMR));
11901191
#endif
1191-
spin_unlock(&ei_local->page_lock);
1192+
spin_unlock_irqrestore(&ei_local->page_lock, flags);
11921193
return IRQ_NONE;
11931194
}
11941195

@@ -1261,7 +1262,7 @@ static irqreturn_t ax_interrupt(int irq, void *dev_id)
12611262
ei_local->irqlock = 0;
12621263
outb_p(ENISR_ALL, e8390_base + EN0_IMR);
12631264

1264-
spin_unlock(&ei_local->page_lock);
1265+
spin_unlock_irqrestore(&ei_local->page_lock, flags);
12651266
return IRQ_RETVAL(handled);
12661267
}
12671268

‎drivers/net/r8169.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1316,7 +1316,7 @@ static void rtl8169_get_mac_version(struct rtl8169_private *tp,
13161316
{ 0x7c800000, 0x28000000, RTL_GIGA_MAC_VER_26 },
13171317

13181318
/* 8168C family. */
1319-
{ 0x7cf00000, 0x3ca00000, RTL_GIGA_MAC_VER_24 },
1319+
{ 0x7cf00000, 0x3cb00000, RTL_GIGA_MAC_VER_24 },
13201320
{ 0x7cf00000, 0x3c900000, RTL_GIGA_MAC_VER_23 },
13211321
{ 0x7cf00000, 0x3c800000, RTL_GIGA_MAC_VER_18 },
13221322
{ 0x7c800000, 0x3c800000, RTL_GIGA_MAC_VER_24 },

‎drivers/net/wireless/ath/ath9k/hif_usb.c‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -730,13 +730,17 @@ static int ath9k_hif_usb_alloc_urbs(struct hif_device_usb *hif_dev)
730730

731731
/* RX */
732732
if (ath9k_hif_usb_alloc_rx_urbs(hif_dev) < 0)
733-
goto err;
733+
goto err_rx;
734734

735735
/* Register Read */
736736
if (ath9k_hif_usb_alloc_reg_in_urb(hif_dev) < 0)
737-
goto err;
737+
goto err_reg;
738738

739739
return 0;
740+
err_reg:
741+
ath9k_hif_usb_dealloc_rx_urbs(hif_dev);
742+
err_rx:
743+
ath9k_hif_usb_dealloc_tx_urbs(hif_dev);
740744
err:
741745
return -ENOMEM;
742746
}

‎drivers/net/wireless/hostap/hostap_pci.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,7 @@ static int prism2_pci_probe(struct pci_dev *pdev,
330330

331331
dev->irq = pdev->irq;
332332
hw_priv->mem_start = mem;
333+
dev->base_addr = (unsigned long) mem;
333334

334335
prism2_pci_cor_sreset(local);
335336

‎drivers/net/wireless/iwlwifi/iwl-sta.h‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,17 @@ static inline void iwl_clear_driver_stations(struct iwl_priv *priv)
9797
spin_lock_irqsave(&priv->sta_lock, flags);
9898
memset(priv->stations, 0, sizeof(priv->stations));
9999
priv->num_stations = 0;
100+
101+
/*
102+
* Remove all key information that is not stored as part of station
103+
* information since mac80211 may not have had a
104+
* chance to remove all the keys. When device is reconfigured by
105+
* mac80211 after an error all keys will be reconfigured.
106+
*/
107+
priv->ucode_key_table = 0;
108+
priv->key_mapping_key = 0;
109+
memset(priv->wep_keys, 0, sizeof(priv->wep_keys));
110+
100111
spin_unlock_irqrestore(&priv->sta_lock, flags);
101112
}
102113

‎drivers/net/wireless/rt2x00/rt2x00dev.c‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -853,6 +853,11 @@ int rt2x00lib_probe_dev(struct rt2x00_dev *rt2x00dev)
853853
BIT(NL80211_IFTYPE_MESH_POINT) |
854854
BIT(NL80211_IFTYPE_WDS);
855855

856+
/*
857+
* Initialize configuration work.
858+
*/
859+
INIT_WORK(&rt2x00dev->intf_work, rt2x00lib_intf_scheduled);
860+
856861
/*
857862
* Let the driver probe the device to detect the capabilities.
858863
*/
@@ -862,11 +867,6 @@ int rt2x00lib_probe_dev(struct rt2x00_dev *rt2x00dev)
862867
goto exit;
863868
}
864869

865-
/*
866-
* Initialize configuration work.
867-
*/
868-
INIT_WORK(&rt2x00dev->intf_work, rt2x00lib_intf_scheduled);
869-
870870
/*
871871
* Allocate queue array.
872872
*/

‎drivers/vhost/net.c‎

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,8 @@ static void handle_tx(struct vhost_net *net)
177177
break;
178178
}
179179
if (err != len)
180-
pr_err("Truncated TX packet: "
181-
" len %d != %zd\n", err, len);
180+
pr_debug("Truncated TX packet: "
181+
" len %d != %zd\n", err, len);
182182
vhost_add_used_and_signal(&net->dev, vq, head, 0);
183183
total_len += len;
184184
if (unlikely(total_len >= VHOST_NET_WEIGHT)) {
@@ -275,8 +275,8 @@ static void handle_rx(struct vhost_net *net)
275275
}
276276
/* TODO: Should check and handle checksum. */
277277
if (err > len) {
278-
pr_err("Discarded truncated rx packet: "
279-
" len %d > %zd\n", err, len);
278+
pr_debug("Discarded truncated rx packet: "
279+
" len %d > %zd\n", err, len);
280280
vhost_discard_vq_desc(vq);
281281
continue;
282282
}
@@ -534,11 +534,16 @@ static long vhost_net_set_backend(struct vhost_net *n, unsigned index, int fd)
534534
rcu_assign_pointer(vq->private_data, sock);
535535
vhost_net_enable_vq(n, vq);
536536
done:
537+
mutex_unlock(&vq->mutex);
538+
537539
if (oldsock) {
538540
vhost_net_flush_vq(n, index);
539541
fput(oldsock->file);
540542
}
541543

544+
mutex_unlock(&n->dev.mutex);
545+
return 0;
546+
542547
err_vq:
543548
mutex_unlock(&vq->mutex);
544549
err:

‎include/net/sock.h‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1224,12 +1224,7 @@ static inline void sk_tx_queue_clear(struct sock *sk)
12241224

12251225
static inline int sk_tx_queue_get(const struct sock *sk)
12261226
{
1227-
return sk->sk_tx_queue_mapping;
1228-
}
1229-
1230-
static inline bool sk_tx_queue_recorded(const struct sock *sk)
1231-
{
1232-
return (sk && sk->sk_tx_queue_mapping >= 0);
1227+
return sk ? sk->sk_tx_queue_mapping : -1;
12331228
}
12341229

12351230
static inline void sk_set_socket(struct sock *sk, struct socket *sock)

‎net/bluetooth/hci_conn.c‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,11 @@ struct hci_conn *hci_connect(struct hci_dev *hdev, int type, bdaddr_t *dst, __u8
358358
acl->sec_level = sec_level;
359359
acl->auth_type = auth_type;
360360
hci_acl_connect(acl);
361+
} else {
362+
if (acl->sec_level < sec_level)
363+
acl->sec_level = sec_level;
364+
if (acl->auth_type < auth_type)
365+
acl->auth_type = auth_type;
361366
}
362367

363368
if (type == ACL_LINK)

0 commit comments

Comments
 (0)