1. 02 1月, 2017 1 次提交
  2. 26 12月, 2016 1 次提交
    • T
      ktime: Cleanup ktime_set() usage · 8b0e1953
      Thomas Gleixner 提交于
      ktime_set(S,N) was required for the timespec storage type and is still
      useful for situations where a Seconds and Nanoseconds part of a time value
      needs to be converted. For anything where the Seconds argument is 0, this
      is pointless and can be replaced with a simple assignment.
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      Cc: Peter Zijlstra <peterz@infradead.org>
      8b0e1953
  3. 15 12月, 2016 1 次提交
  4. 10 12月, 2016 1 次提交
  5. 06 12月, 2016 1 次提交
    • A
      [iov_iter] new primitives - copy_from_iter_full() and friends · cbbd26b8
      Al Viro 提交于
      copy_from_iter_full(), copy_from_iter_full_nocache() and
      csum_and_copy_from_iter_full() - counterparts of copy_from_iter()
      et.al., advancing iterator only in case of successful full copy
      and returning whether it had been successful or not.
      
      Convert some obvious users.  *NOTE* - do not blindly assume that
      something is a good candidate for those unless you are sure that
      not advancing iov_iter in failure case is the right thing in
      this case.  Anything that does short read/short write kind of
      stuff (or is in a loop, etc.) is unlikely to be a good one.
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      cbbd26b8
  6. 01 12月, 2016 1 次提交
    • A
      fs: configfs: don't return anything from drop_link · e16769d4
      Andrzej Pietrasiewicz 提交于
      Documentation/filesystems/configfs/configfs.txt says:
      
      "When unlink(2) is called on the symbolic link, the source item is
      notified via the ->drop_link() method.  Like the ->drop_item() method,
      this is a void function and cannot return failure."
      
      The ->drop_item() is indeed a void function, the ->drop_link() is
      actually not. This, together with the fact that the value of ->drop_link()
      is silently ignored suggests, that it is the ->drop_link() return
      type that should be corrected and changed to void.
      
      This patch changes drop_link() signature and all its users.
      Signed-off-by: NAndrzej Pietrasiewicz <andrzej.p@samsung.com>
      [hch: reverted reformatting of some code]
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      e16769d4
  7. 18 11月, 2016 4 次提交
    • F
      usb: gadget: serial: fix possible Oops caused by calling kthread_stop(NULL) · d5c024f3
      Felix Hädicke 提交于
      Add check for NULL before calling kthread_stop().
      
      There were cases in which gserial_console_exit() was called, but the
      console thread was not started. This resulted in an invalid
      kthread_stop(NULL) call.
      
      Without this, the following Oops may occur:
      
          BUG: unable to handle kernel
          NULL pointer dereference at 0000000000000018
          IP: [<ffffffffb3ca1166>] kthread_stop+0x16/0x110
          ...
          CPU: 2 PID: 853 Comm: rmmod Not tainted 4.9.0-rc5 #3
          Hardware name: To Be Filled By O.E.M. To Be Filled By O.E.M./Z77 Extreme3, BIOS P1.50 07/11/2013
          task: ffff880419f6a100 task.stack: ffffc90002e8c000
          RIP: 0010:[<ffffffffb3ca1166>]  [<ffffffffb3ca1166>] kthread_stop+0x16/0x110
          RSP: 0018:ffffc90002e8fdb0  EFLAGS: 00010286
          RAX: 0000000000000001 RBX: 0000000000000000 RCX: 0000000000000000
          RDX: 0000000000000001 RSI: 0000000000000246 RDI: 0000000000000000
          RBP: ffffc90002e8fdc8 R08: 0000000000000000 R09: 0000000000000001
          R10: 000000000000019d R11: 000000000000001f R12: 0000000000000000
          R13: ffff88041b8d8400 R14: 0000000000000001 R15: 000055fd59f5a1e0
          FS:  00007f82500be700(0000) GS:ffff88042f280000(0000) knlGS:0000000000000000
          CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
          CR2: 0000000000000018 CR3: 000000041bee2000 CR4: 00000000001406e0
          Stack:
           0000000000000000 ffffffffc0b8e720 ffff88041b8d8400 ffffc90002e8fdf0
           ffffffffc0b8bb52 ffff88041a106300 0000000000000001 ffff880419fc2ea8
           ffffc90002e8fe08 ffffffffc0aed749 ffffffffc0aef600 ffffc90002e8fe20
          Call Trace:
           [<ffffffffc0b8bb52>] gserial_free_line+0x72/0xb0 [u_serial]
           [<ffffffffc0aed749>] acm_free_instance+0x19/0x30 [usb_f_acm]
           [<ffffffffc0b01b40>] usb_put_function_instance+0x20/0x30 [libcomposite]
           [<ffffffffc04a603b>] gs_unbind+0x3b/0x70 [g_serial]
           [<ffffffffc0b018d1>] __composite_unbind+0x61/0xb0 [libcomposite]
           [<ffffffffc0b01933>] composite_unbind+0x13/0x20 [libcomposite]
           [<ffffffffc08ef1ad>] usb_gadget_remove_driver+0x3d/0x90 [udc_core]
           [<ffffffffc08ef26e>] usb_gadget_unregister_driver+0x6e/0xc0 [udc_core]
           [<ffffffffc0aff6d2>] usb_composite_unregister+0x12/0x20 [libcomposite]
           [<ffffffffc04a6268>] cleanup+0x10/0xda8 [g_serial]
           [<ffffffffb3d0c0c2>] SyS_delete_module+0x192/0x270
           [<ffffffffb3c032a0>] ? exit_to_usermode_loop+0x90/0xb0
           [<ffffffffb4228a3b>] entry_SYSCALL_64_fastpath+0x1e/0xad
          Code: 89 c6 e8 6e ff ff ff 48 89 df e8 06 bd fd ff 5b 5d c3 0f 1f 00 0f 1f 44 00 00 55 48 89 e5 41 55 41 54 49 89 fc 53 0f 1f 44 00 00 <f0> 41 ff 44 24 18 4c 89 e7 e8 bc f1 ff ff 48 85 c0 48 89 c3 74
          RIP  [<ffffffffb3ca1166>] kthread_stop+0x16/0x110
           RSP <ffffc90002e8fdb0>
          CR2: 0000000000000018
          ---[ end trace 5b3336a407e1698c ]---
      Signed-off-by: NFelix Hädicke <felixhaedicke@web.de>
      Tested-by: NPeter Chen <peter.chen@nxp.com>
      Signed-off-by: NFelipe Balbi <felipe.balbi@linux.intel.com>
      d5c024f3
    • A
      usb: gadget: Fix checkpatch error for braces · 97f0117b
      Anson Jacob 提交于
      Fix error message by checkpath.pl
      open brace '{' following struct/enum go on the same line
      
      Patch applied by running fix inplace capability of checkpatch:
      checkpatch.pl -f *.[ch] --types OPEN_BRACE --fix-inplace
      Signed-off-by: NAnson Jacob <ansonjacob.aj@gmail.com>
      Signed-off-by: NFelipe Balbi <felipe.balbi@linux.intel.com>
      97f0117b
    • P
      usb: gadget: f_uac2: fix error handling at afunc_bind · f1d3861d
      Peter Chen 提交于
      The current error handling flow uses incorrect goto label, fix it
      
      Cc: <stable@vger.kernel.org>
      Fixes: d12a8727 ("usb: gadget: function: Remove
      	redundant usb_free_all_descriptors")
      Signed-off-by: NPeter Chen <peter.chen@nxp.com>
      Signed-off-by: NFelipe Balbi <felipe.balbi@linux.intel.com>
      f1d3861d
    • F
      usb: gadget: f_fs: fix wrong parenthesis in ffs_func_req_match() · 05e78c69
      Felix Hädicke 提交于
      Properly check the return code of ffs_func_revmap_intf() and
      ffs_func_revmap_ep() for a non-negative value.
      
      Instead of checking the return code, the comparison was performed for the last
      parameter of the function calls, because of wrong parenthesis.
      
      This also fixes the following static checker warning:
      drivers/usb/gadget/function/f_fs.c:3152 ffs_func_req_match()
      warn: always true condition '(((creq->wIndex)) >= 0) => (0-u16max >= 0)'
      Reported-by: NDan Carpenter <dan.carpenter@oracle.com>
      Signed-off-by: NFelix Hädicke <felixhaedicke@web.de>
      Signed-off-by: NFelipe Balbi <felipe.balbi@linux.intel.com>
      05e78c69
  8. 08 11月, 2016 1 次提交
  9. 03 11月, 2016 5 次提交
  10. 01 11月, 2016 1 次提交
  11. 31 10月, 2016 1 次提交
    • F
      usb: gadget: composite: always set ep->mult to a sensible value · eaa496ff
      Felipe Balbi 提交于
      ep->mult is supposed to be set to Isochronous and
      Interrupt Endapoint's multiplier value. This value
      is computed from different places depending on the
      link speed.
      
      If we're dealing with HighSpeed, then it's part of
      bits [12:11] of wMaxPacketSize. This case wasn't
      taken into consideration before.
      
      While at that, also make sure the ep->mult defaults
      to one so drivers can use it unconditionally and
      assume they'll never multiply ep->maxpacket to zero.
      
      Cc: <stable@vger.kernel.org>
      Signed-off-by: NFelipe Balbi <felipe.balbi@linux.intel.com>
      eaa496ff
  12. 24 10月, 2016 1 次提交
  13. 21 10月, 2016 1 次提交
    • J
      net: use core MTU range checking in misc drivers · b3e3893e
      Jarod Wilson 提交于
      firewire-net:
      - set min/max_mtu
      - remove fwnet_change_mtu
      
      nes:
      - set max_mtu
      - clean up nes_netdev_change_mtu
      
      xpnet:
      - set min/max_mtu
      - remove xpnet_dev_change_mtu
      
      hippi:
      - set min/max_mtu
      - remove hippi_change_mtu
      
      batman-adv:
      - set max_mtu
      - remove batadv_interface_change_mtu
      - initialization is a little async, not 100% certain that max_mtu is set
        in the optimal place, don't have hardware to test with
      
      rionet:
      - set min/max_mtu
      - remove rionet_change_mtu
      
      slip:
      - set min/max_mtu
      - streamline sl_change_mtu
      
      um/net_kern:
      - remove pointless ndo_change_mtu
      
      hsi/clients/ssi_protocol:
      - use core MTU range checking
      - remove now redundant ssip_pn_set_mtu
      
      ipoib:
      - set a default max MTU value
      - Note: ipoib's actual max MTU can vary, depending on if the device is in
        connected mode or not, so we'll just set the max_mtu value to the max
        possible, and let the ndo_change_mtu function continue to validate any new
        MTU change requests with checks for CM or not. Note that ipoib has no
        min_mtu set, and thus, the network core's mtu > 0 check is the only lower
        bounds here.
      
      mptlan:
      - use net core MTU range checking
      - remove now redundant mpt_lan_change_mtu
      
      fddi:
      - min_mtu = 21, max_mtu = 4470
      - remove now redundant fddi_change_mtu (including export)
      
      fjes:
      - min_mtu = 8192, max_mtu = 65536
      - The max_mtu value is actually one over IP_MAX_MTU here, but the idea is to
        get past the core net MTU range checks so fjes_change_mtu can validate a
        new MTU against what it supports (see fjes_support_mtu in fjes_hw.c)
      
      hsr:
      - min_mtu = 0 (calls ether_setup, max_mtu is 1500)
      
      f_phonet:
      - min_mtu = 6, max_mtu = 65541
      
      u_ether:
      - min_mtu = 14, max_mtu = 15412
      
      phonet/pep-gprs:
      - min_mtu = 576, max_mtu = 65530
      - remove redundant gprs_set_mtu
      
      CC: netdev@vger.kernel.org
      CC: linux-rdma@vger.kernel.org
      CC: Stefan Richter <stefanr@s5r6.in-berlin.de>
      CC: Faisal Latif <faisal.latif@intel.com>
      CC: linux-rdma@vger.kernel.org
      CC: Cliff Whickman <cpw@sgi.com>
      CC: Robin Holt <robinmholt@gmail.com>
      CC: Jes Sorensen <jes@trained-monkey.org>
      CC: Marek Lindner <mareklindner@neomailbox.ch>
      CC: Simon Wunderlich <sw@simonwunderlich.de>
      CC: Antonio Quartulli <a@unstable.cc>
      CC: Sathya Prakash <sathya.prakash@broadcom.com>
      CC: Chaitra P B <chaitra.basappa@broadcom.com>
      CC: Suganath Prabu Subramani <suganath-prabu.subramani@broadcom.com>
      CC: MPT-FusionLinux.pdl@broadcom.com
      CC: Sebastian Reichel <sre@kernel.org>
      CC: Felipe Balbi <balbi@kernel.org>
      CC: Arvid Brodin <arvid.brodin@alten.se>
      CC: Remi Denis-Courmont <courmisch@gmail.com>
      Signed-off-by: NJarod Wilson <jarod@redhat.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      b3e3893e
  14. 17 10月, 2016 3 次提交
  15. 28 9月, 2016 1 次提交
  16. 19 9月, 2016 1 次提交
  17. 09 9月, 2016 3 次提交
  18. 08 9月, 2016 1 次提交
  19. 06 9月, 2016 1 次提交
  20. 31 8月, 2016 3 次提交
  21. 25 8月, 2016 7 次提交