1. 02 8月, 2017 7 次提交
  2. 01 8月, 2017 3 次提交
  3. 30 7月, 2017 2 次提交
  4. 27 7月, 2017 13 次提交
  5. 26 7月, 2017 2 次提交
  6. 25 7月, 2017 6 次提交
  7. 21 7月, 2017 1 次提交
  8. 20 7月, 2017 2 次提交
    • C
      net: tehuti: don't process data if it has not been copied from userspace · 1e6c22ae
      Colin Ian King 提交于
      The array data is only populated with valid information from userspace
      if cmd != SIOCDEVPRIVATE, other cases the array contains garbage on
      the stack. The subsequent switch statement acts on a subcommand in
      data[0] which could be any garbage value if cmd is SIOCDEVPRIVATE which
      seems incorrect to me.  Instead, just return EOPNOTSUPP for the case
      where cmd == SIOCDEVPRIVATE to avoid this issue.
      
      As a side note, I suspect that the original intention of the code
      was for this ioctl to work just for cmd == SIOCDEVPRIVATE (and the
      current logic is reversed). However, I don't wont to change the current
      semantics in case any userspace code relies on this existing behaviour.
      
      Detected by CoverityScan, CID#139647 ("Uninitialized scalar variable")
      Signed-off-by: NColin Ian King <colin.king@canonical.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      1e6c22ae
    • E
      NET: dwmac: Make dwmac reset unconditional · 90f522a2
      Eugeniy Paltsev 提交于
      Unconditional reset dwmac before HW init if reset controller is present.
      
      In existing implementation we reset dwmac only after second module
      probing:
      (module load -> unload -> load again [reset happens])
      
      Now we reset dwmac at every module load:
      (module load [reset happens] -> unload -> load again [reset happens])
      
      Also some reset controllers have only reset callback instead of
      assert + deassert callbacks pair, so handle this case.
      Signed-off-by: NEugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      90f522a2
  9. 18 7月, 2017 1 次提交
  10. 16 7月, 2017 3 次提交