1. 01 11月, 2018 14 次提交
  2. 31 10月, 2018 2 次提交
    • M
      net: mvpp2: Fix affinity hint allocation · a6b3a3fa
      Marc Zyngier 提交于
      The mvpp2 driver has the curious behaviour of passing a stack variable
      to irq_set_affinity_hint(), which results in the kernel exploding
      the first time anyone accesses this information. News flash: userspace
      does, and irqbalance will happily take the machine down. Great stuff.
      
      An easy fix is to track the mask within the queue_vector structure,
      and to make sure it has the same lifetime as the interrupt itself.
      
      Fixes: e531f767 ("net: mvpp2: handle cases where more CPUs are available than s/w threads")
      Signed-off-by: NMarc Zyngier <marc.zyngier@arm.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      a6b3a3fa
    • E
      net/mlx4_en: add a missing <net/ip.h> include · 3aa8029e
      Eric Dumazet 提交于
      Abdul Haleem reported a build error on ppc :
      
      drivers/net/ethernet/mellanox/mlx4/en_rx.c:582:18: warning: `struct
      iphdr` declared inside parameter list [enabled by default]
                 struct iphdr *iph)
                        ^
      drivers/net/ethernet/mellanox/mlx4/en_rx.c:582:18: warning: its scope is
      only this definition or declaration, which is probably not what you want
      [enabled by default]
      drivers/net/ethernet/mellanox/mlx4/en_rx.c: In function
      get_fixed_ipv4_csum:
      drivers/net/ethernet/mellanox/mlx4/en_rx.c:586:20: error: dereferencing
      pointer to incomplete type
        __u8 ipproto = iph->protocol;
                          ^
      
      Fixes: 55469bc6 ("drivers: net: remove <net/busy_poll.h> inclusion when not needed")
      Signed-off-by: NEric Dumazet <edumazet@google.com>
      Reported-by: NAbdul Haleem <abdhalee@linux.vnet.ibm.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      3aa8029e
  3. 30 10月, 2018 9 次提交
  4. 29 10月, 2018 3 次提交
  5. 28 10月, 2018 2 次提交
    • L
      HID: we do not randomly make new drivers 'default y' · 69d5b97c
      Linus Torvalds 提交于
      .. even when that "default y" is hidden syntactically as a
      
      	default !EXPERT
      
      it's wrong.
      
      The only reason something should be 'default y' is if it used to be
      built-in, and it was made configurable, and the 'default y' is just
      retaining the status quo.
      
      Altheratively, the hardware for the driver has become _so_ common that
      it really makes sense for everybody to build it.  Finally, one possible
      reason for 'default y' is because the option is not enabling any new
      code at all, but is just enabling other options (the networking people
      do this for vendor options, for example, so that you can disable whole
      vendors at a time).
      
      Clearly, none of these cases hold for the BigBen Interactive Kids'
      gamepad, and HID_BIGBEN_FF should thus most definitely not default
      to on for everybody.
      
      Cc: Hanno Zulla <kontakt@hanno.de>
      Cc: Jiri Kosina <jkosina@suse.cz>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      69d5b97c
    • L
      i2c-hid: properly terminate i2c_hid_dmi_desc_override_table[] array · b59dfdae
      Linus Torvalds 提交于
      Commit 9ee3e066 ("HID: i2c-hid: override HID descriptors for certain
      devices") added a new dmi_system_id quirk table to override certain HID
      report descriptors for some systems that lack them.
      
      But the table wasn't properly terminated, causing the dmi matching to
      walk off into la-la-land, and starting to treat random data as dmi
      descriptor pointers, causing boot-time oopses if you were at all
      unlucky.
      
      Terminate the array.
      
      We really should have some way to just statically check that arrays that
      should be terminated by an empty entry actually are so.  But the HID
      people really should have caught this themselves, rather than have me
      deal with an oops during the merge window.  Tssk, tssk.
      
      Cc: Julian Sax <jsbc@gmx.de>
      Cc: Benjamin Tissoires <benjamin.tissoires@redhat.com>
      Cc: Jiri Kosina <jkosina@suse.cz>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      b59dfdae
  6. 27 10月, 2018 6 次提交
  7. 26 10月, 2018 4 次提交