Skip to content

Commit 8696823

Browse files
committed
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/net: fix CAN MAINTAINERS SCM tree type mwifiex: fix crash during simultaneous scan and connect b43: fix regression in PIO case ath9k: Fix kernel panic in AR2427 in AP mode CAN MAINTAINERS update net: fsl: fec: fix build for mx23-only kernel sch_qfq: fix overflow in qfq_update_start() Revert "Bluetooth: Increase HCI reset timeout in hci_dev_do_close"
2 parents d6042ea + d8f46ff commit 8696823

File tree

7 files changed

+32
-15
lines changed

7 files changed

+32
-15
lines changed

MAINTAINERS

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1698,11 +1698,9 @@ F: arch/x86/include/asm/tce.h
16981698

16991699
CAN NETWORK LAYER
17001700
M: Oliver Hartkopp <[email protected]>
1701-
M: Oliver Hartkopp <[email protected]>
1702-
M: Urs Thuermann <[email protected]>
17031701
1704-
1705-
W: http://developer.berlios.de/projects/socketcan/
1702+
W: http://gitorious.org/linux-can
1703+
T: git git://gitorious.org/linux-can/linux-can-next.git
17061704
S: Maintained
17071705
F: net/can/
17081706
F: include/linux/can.h
@@ -1713,9 +1711,10 @@ F: include/linux/can/gw.h
17131711

17141712
CAN NETWORK DRIVERS
17151713
M: Wolfgang Grandegger <[email protected]>
1714+
M: Marc Kleine-Budde <[email protected]>
17161715
1717-
1718-
W: http://developer.berlios.de/projects/socketcan/
1716+
W: http://gitorious.org/linux-can
1717+
T: git git://gitorious.org/linux-can/linux-can-next.git
17191718
S: Maintained
17201719
F: drivers/net/can/
17211720
F: include/linux/can/dev.h

drivers/net/ethernet/freescale/Kconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ if NET_VENDOR_FREESCALE
2323
config FEC
2424
bool "FEC ethernet controller (of ColdFire and some i.MX CPUs)"
2525
depends on (M523x || M527x || M5272 || M528x || M520x || M532x || \
26-
ARCH_MXC || ARCH_MXS)
27-
default ARCH_MXC || ARCH_MXS if ARM
26+
ARCH_MXC || SOC_IMX28)
27+
default ARCH_MXC || SOC_IMX28 if ARM
2828
select PHYLIB
2929
---help---
3030
Say Y here if you want to use the built-in 10/100 Fast ethernet

drivers/net/wireless/ath/ath9k/main.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1843,6 +1843,9 @@ static void ath9k_sta_notify(struct ieee80211_hw *hw,
18431843
struct ath_softc *sc = hw->priv;
18441844
struct ath_node *an = (struct ath_node *) sta->drv_priv;
18451845

1846+
if (!(sc->sc_flags & SC_OP_TXAGGR))
1847+
return;
1848+
18461849
switch (cmd) {
18471850
case STA_NOTIFY_SLEEP:
18481851
an->sleeping = true;

drivers/net/wireless/b43/pio.c

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -617,9 +617,19 @@ static bool pio_rx_frame(struct b43_pio_rxqueue *q)
617617
const char *err_msg = NULL;
618618
struct b43_rxhdr_fw4 *rxhdr =
619619
(struct b43_rxhdr_fw4 *)wl->pio_scratchspace;
620+
size_t rxhdr_size = sizeof(*rxhdr);
620621

621622
BUILD_BUG_ON(sizeof(wl->pio_scratchspace) < sizeof(*rxhdr));
622-
memset(rxhdr, 0, sizeof(*rxhdr));
623+
switch (dev->fw.hdr_format) {
624+
case B43_FW_HDR_410:
625+
case B43_FW_HDR_351:
626+
rxhdr_size -= sizeof(rxhdr->format_598) -
627+
sizeof(rxhdr->format_351);
628+
break;
629+
case B43_FW_HDR_598:
630+
break;
631+
}
632+
memset(rxhdr, 0, rxhdr_size);
623633

624634
/* Check if we have data and wait for it to get ready. */
625635
if (q->rev >= 8) {
@@ -657,11 +667,11 @@ static bool pio_rx_frame(struct b43_pio_rxqueue *q)
657667

658668
/* Get the preamble (RX header) */
659669
if (q->rev >= 8) {
660-
b43_block_read(dev, rxhdr, sizeof(*rxhdr),
670+
b43_block_read(dev, rxhdr, rxhdr_size,
661671
q->mmio_base + B43_PIO8_RXDATA,
662672
sizeof(u32));
663673
} else {
664-
b43_block_read(dev, rxhdr, sizeof(*rxhdr),
674+
b43_block_read(dev, rxhdr, rxhdr_size,
665675
q->mmio_base + B43_PIO_RXDATA,
666676
sizeof(u16));
667677
}

drivers/net/wireless/mwifiex/sta_ioctl.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,14 @@ int mwifiex_wait_queue_complete(struct mwifiex_adapter *adapter)
5555
{
5656
bool cancel_flag = false;
5757
int status = adapter->cmd_wait_q.status;
58-
struct cmd_ctrl_node *cmd_queued = adapter->cmd_queued;
58+
struct cmd_ctrl_node *cmd_queued;
5959

60+
if (!adapter->cmd_queued)
61+
return 0;
62+
63+
cmd_queued = adapter->cmd_queued;
6064
adapter->cmd_queued = NULL;
65+
6166
dev_dbg(adapter->dev, "cmd pending\n");
6267
atomic_inc(&adapter->cmd_pending);
6368

net/bluetooth/hci_core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ static int hci_dev_do_close(struct hci_dev *hdev)
613613
if (!test_bit(HCI_RAW, &hdev->flags)) {
614614
set_bit(HCI_INIT, &hdev->flags);
615615
__hci_request(hdev, hci_reset_req, 0,
616-
msecs_to_jiffies(HCI_INIT_TIMEOUT));
616+
msecs_to_jiffies(250));
617617
clear_bit(HCI_INIT, &hdev->flags);
618618
}
619619

net/sched/sch_qfq.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -817,11 +817,11 @@ static struct sk_buff *qfq_dequeue(struct Qdisc *sch)
817817
static void qfq_update_start(struct qfq_sched *q, struct qfq_class *cl)
818818
{
819819
unsigned long mask;
820-
uint32_t limit, roundedF;
820+
u64 limit, roundedF;
821821
int slot_shift = cl->grp->slot_shift;
822822

823823
roundedF = qfq_round_down(cl->F, slot_shift);
824-
limit = qfq_round_down(q->V, slot_shift) + (1UL << slot_shift);
824+
limit = qfq_round_down(q->V, slot_shift) + (1ULL << slot_shift);
825825

826826
if (!qfq_gt(cl->F, q->V) || qfq_gt(roundedF, limit)) {
827827
/* timestamp was stale */

0 commit comments

Comments
 (0)