1. 04 3月, 2016 6 次提交
  2. 07 2月, 2016 1 次提交
  3. 04 2月, 2016 2 次提交
  4. 25 1月, 2016 1 次提交
  5. 24 12月, 2015 1 次提交
    • B
      net: cdc_ncm: avoid changing RX/TX buffers on MTU changes · 1dfddff5
      Bjørn Mork 提交于
      NCM buffer sizes are negotiated with the device independently of
      the network device MTU.  The RX buffers are allocated by the
      usbnet framework based on the rx_urb_size value set by cdc_ncm. A
      single RX buffer can hold a number of MTU sized packets.
      
      The default usbnet change_mtu ndo only modifies rx_urb_size if it
      is equal to hard_mtu.  And the cdc_ncm driver will set rx_urb_size
      and hard_mtu independently of each other, based on dwNtbInMaxSize
      and dwNtbOutMaxSize respectively. It was therefore assumed that
      usbnet_change_mtu() would never touch rx_urb_size.  This failed to
      consider the case where dwNtbInMaxSize and dwNtbOutMaxSize happens
      to be equal.
      
      Fix by implementing an NCM specific change_mtu ndo, modifying the
      netdev MTU without touching the buffer size settings.
      Signed-off-by: NBjørn Mork <bjorn@mork.no>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      1dfddff5
  6. 23 12月, 2015 1 次提交
    • D
      usb: gadget: forbid queuing request to a disabled ep · 8a0859b6
      Du, Changbin 提交于
      Queue a request to disabled ep  doesn't make sense, and induce caller
      make mistakes.
      
      Here is a example for the android mtp gadget function driver. A mem
      corruption can happen on below senario.
      1) On disconnect, mtp driver disable its EPs,
      2) During send_file_work and receive_file_work, mtp queues a request
         to ep. (The mtp driver need improve its synchronization logic!)
      3) mtp_function_unbind is invoked and all mtp requests are freed.
      4) when udc process the request queued on step 2, will cause kernel
         NULL pointer dereference exception.
      Signed-off-by: NDu, Changbin <changbin.du@intel.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      8a0859b6
  7. 17 12月, 2015 5 次提交
  8. 15 12月, 2015 2 次提交
  9. 12 12月, 2015 1 次提交
  10. 02 12月, 2015 1 次提交
  11. 22 10月, 2015 2 次提交
  12. 14 10月, 2015 1 次提交
  13. 04 10月, 2015 2 次提交
  14. 01 10月, 2015 1 次提交
  15. 27 9月, 2015 6 次提交
  16. 23 9月, 2015 2 次提交
  17. 16 9月, 2015 3 次提交
  18. 19 8月, 2015 2 次提交