1. 11 9月, 2012 2 次提交
    • F
      ixp4xx_hss: fix build failure due to missing linux/module.h inclusion · 0b836ddd
      Florian Fainelli 提交于
      Commit 36a12119 (netprio_cgroup.h:
      dont include module.h from other includes) made the following build
      error on ixp4xx_hss pop up:
      
        CC [M]  drivers/net/wan/ixp4xx_hss.o
       drivers/net/wan/ixp4xx_hss.c:1412:20: error: expected ';', ',' or ')'
       before string constant
       drivers/net/wan/ixp4xx_hss.c:1413:25: error: expected ';', ',' or ')'
       before string constant
       drivers/net/wan/ixp4xx_hss.c:1414:21: error: expected ';', ',' or ')'
       before string constant
       drivers/net/wan/ixp4xx_hss.c:1415:19: error: expected ';', ',' or ')'
       before string constant
       make[8]: *** [drivers/net/wan/ixp4xx_hss.o] Error 1
      
      This was previously hidden because ixp4xx_hss includes linux/hdlc.h which
      includes linux/netdevice.h which includes linux/netprio_cgroup.h which
      used to include linux/module.h. The real issue was actually present since
      the initial commit that added this driver since it uses macros from
      linux/module.h without including this file.
      Signed-off-by: NFlorian Fainelli <florian@openwrt.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      0b836ddd
    • L
      sierra_net: Endianess bug fix. · 2120c52d
      Lennart Sorensen 提交于
      I discovered I couldn't get sierra_net to work on a powerpc.  Turns out
      the firmware attribute check assumes the system is little endian and
      hence fails because the attributes is a 16 bit value.
      Signed-off-by: NLen Sorensen <lsorense@csclub.uwaterloo.ca>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      2120c52d
  2. 08 9月, 2012 6 次提交
  3. 06 9月, 2012 19 次提交
  4. 05 9月, 2012 1 次提交
    • W
      i825xx: fix paging fault on znet_probe() · b320e972
      Wu Fengguang 提交于
      In znet_probe(), strncmp() may access beyond 0x100000 and
      trigger the below oops in kvm.  Fix it by limiting the loop
      under 0x100000-8. I suspect the limit could be further decreased
      to 0x100000-sizeof(struct netidblk), however no datasheet at hand..
      
      [    3.744312] BUG: unable to handle kernel paging request at 80100000
      [    3.746145] IP: [<8119d12a>] strncmp+0xc/0x20
      [    3.747446] *pde = 01d10067 *pte = 00100160
      [    3.747493] Oops: 0000 [#1] DEBUG_PAGEALLOC
      [    3.747493] Pid: 1, comm: swapper Not tainted 3.6.0-rc1-00018-g57bfc0a7 #73 Bochs Bochs
      [    3.747493] EIP: 0060:[<8119d12a>] EFLAGS: 00010206 CPU: 0
      [    3.747493] EIP is at strncmp+0xc/0x20
      [    3.747493] EAX: 800fff4e EBX: 00000006 ECX: 00000006 EDX: 814d2bb9
      [    3.747493] ESI: 80100000 EDI: 814d2bba EBP: 8e03dfa0 ESP: 8e03df98
      [    3.747493]  DS: 007b ES: 007b FS: 0000 GS: 00e0 SS: 0068
      [    3.747493] CR0: 8005003b CR2: 80100000 CR3: 016f7000 CR4: 00000690
      [    3.747493] DR0: 00000000 DR1: 00000000 DR2: 00000000 DR3: 00000000
      [    3.747493] DR6: ffff0ff0 DR7: 00000400
      [    3.747493] Process swapper (pid: 1, ti=8e03c000 task=8e040000 task.ti=8e03c000)
      [    3.747493] Stack:
      [    3.747493]  800fffff 00000000 8e03dfb4 816a1376 00000006 816a134a 00000000 8e03dfd0
      [    3.747493]  816819b5 816ed1c0 8e03dfe4 00000006 00000123 816ed604 8e03dfe4 81681b29
      [    3.747493]  00000000 81681a5b 00000000 00000000 8134e542 00000000 00000000 00000000
      [    3.747493] Call Trace:
      [    3.747493]  [<816a1376>] znet_probe+0x2c/0x26b
      [    3.747493]  [<816a134a>] ? dnet_driver_init+0xf/0xf
      [    3.747493]  [<816819b5>] do_one_initcall+0x6a/0x110
      [    3.747493]  [<81681b29>] kernel_init+0xce/0x14b
      Signed-off-by: NFengguang Wu <fengguang.wu@intel.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      b320e972
  5. 04 9月, 2012 2 次提交
    • B
      can: mcp251x: avoid repeated frame bug · cab32f39
      Benoît Locher 提交于
      The MCP2515 has a silicon bug causing repeated frame transmission, see section
      5 of MCP2515 Rev. B Silicon Errata Revision G (March 2007).
      
      Basically, setting TXBnCTRL.TXREQ in either SPI mode (00 or 11) will eventually
      cause the bug. The workaround proposed by Microchip is to use mode 00 and send
      a RTS command on the SPI bus to initiate the transmission.
      
      Cc: <stable@vger.kernel.org>
      Signed-off-by: NBenoît Locher <Benoit.Locher@skf.com>
      Signed-off-by: NMarc Kleine-Budde <mkl@pengutronix.de>
      cab32f39
    • B
      net: usbnet: fix softirq storm on suspend · 85e87870
      Bjørn Mork 提交于
      Suspending an open usbnet device results in constant
      rescheduling of usbnet_bh.
      
      commit 65841fd5 "usbnet: handle remote wakeup asap"
      refactored the usbnet_bh code to allow sharing the
      urb allocate and submit code with usbnet_resume. In
      this process, a test for, and immediate return on,
      ENOLINK from rx_submit was unintentionally dropped.
      
      The rx queue will not grow if rx_submit fails,
      making usbnet_bh reschedule itself.  This results
      in a softirq storm if the error is persistent.
      rx_submit translates the usb_submit_urb error
      EHOSTUNREACH into ENOLINK, so this is an expected
      and persistent error for a suspended device. The
      old code tested for this condition and avoided
      rescheduling.  Putting this test back.
      
      Cc: <stable@vger.kernel.org> # v3.5
      Cc: Ming Lei <ming.lei@canonical.com>
      Cc: Oliver Neukum <oneukum@suse.de>
      Signed-off-by: NBjørn Mork <bjorn@mork.no>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      85e87870
  6. 02 9月, 2012 2 次提交
  7. 01 9月, 2012 4 次提交
  8. 31 8月, 2012 4 次提交