1. 22 3月, 2017 7 次提交
  2. 17 3月, 2017 4 次提交
  3. 16 3月, 2017 3 次提交
  4. 15 3月, 2017 9 次提交
  5. 14 3月, 2017 5 次提交
  6. 13 3月, 2017 4 次提交
  7. 11 3月, 2017 5 次提交
  8. 10 3月, 2017 3 次提交
    • A
      net: phy: marvell: Fix double free of hwmon device · 29673983
      Andrew Lunn 提交于
      The hwmon temperature sensor devices is registered using a devm_hwmon
      API call.  The marvell_release() would then manually free the device,
      not using a devm_hmon API, resulting in the device being removed
      twice, leading to a crash in kernfs_find_ns() during the second
      removal.
      
      Remove the manual removal, which makes marvell_release() empty, so
      remove it as well.
      Signed-off-by: NAndrew Lunn <andrew@lunn.ch>
      Fixes: 0b04680f ("phy: marvell: Add support for temperature sensor")
      Acked-by: NFlorian Fainelli <f.fainelli@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      29673983
    • L
      powerpc/pmac: Fix crash in dma-mapping.h with NULL dma_ops · 46f401c4
      Larry Finger 提交于
      Commit 5657933d ("treewide: Move dma_ops from struct dev_archdata
      into struct device") introduced a crash for macio devices, an example
      backtrace being:
      
        kernel BUG at ./include/linux/dma-mapping.h:465!
        Oops: Exception in kernel mode, sig: 5 [#1]
        ...
        NIP [c031ddb0] dmam_alloc_coherent+0x74/0x140
        LR [c031de70] dmam_alloc_coherent+0x134/0x140
        Call Trace:
         dmam_alloc_coherent+0x134/0x140 (unreliable)
         pata_macio_port_start+0x3c/0x8c
         ata_host_start.part.5+0xfc/0x208
         ata_host_activate+0x128/0x154
         pata_macio_common_init+0x2f0/0x538
         pata_macio_attach+0xd8/0x180
         macio_device_probe+0x5c/0xec
         driver_probe_device+0x21c/0x314
         __driver_attach+0xcc/0xd0
         bus_for_each_dev+0x68/0xb4
         bus_add_driver+0x1dc/0x244
         driver_register+0x88/0x130
         pata_macio_init+0x5c/0x88
         do_one_initcall+0x40/0x170
         kernel_init_freeable+0x134/0x1d0
         kernel_init+0x18/0x110
         ret_from_kernel_thread+0x5c/0x64
      
      This was caused by the device having NULL dma_ops, triggering the
      BUG_ON(). Previously the device inherited its dma_ops via the assignment
      to dev->ofdev.dev.archdata. However after commit 5657933d the
      dma_ops are moved into dev->ofdev.dev, and so they need to be explicitly
      copied.
      
      Fixes: 5657933d ("treewide: Move dma_ops from struct dev_archdata into struct device")
      Signed-off-by: NLarry Finger <Larry.Finger@lwfinger.net>
      Suggested-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      [mpe: Rewrite change log, add backtrace]
      Signed-off-by: NMichael Ellerman <mpe@ellerman.id.au>
      46f401c4
    • D
      net: bcmgenet: decouple flow control from bcmgenet_tx_reclaim · 6d22fe14
      Doug Berger 提交于
      The bcmgenet_tx_reclaim() function is used to reclaim transmit
      resources in different places within the driver.  Most of them
      should not affect the state of the transmit flow control.
      
      This commit relocates the logic for waking tx queues based on
      freed resources to the napi polling function where it is more
      appropriate.
      
      Fixes: 1c1008c7 ("net: bcmgenet: add main driver file")
      Signed-off-by: NDoug Berger <opendmb@gmail.com>
      Reviewed-by: NFlorian Fainelli <f.fainelli@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      6d22fe14