1. 10 10月, 2009 2 次提交
  2. 23 9月, 2009 3 次提交
  3. 20 9月, 2009 1 次提交
  4. 08 8月, 2009 2 次提交
  5. 29 7月, 2009 1 次提交
  6. 13 7月, 2009 5 次提交
  7. 11 7月, 2009 1 次提交
  8. 16 6月, 2009 6 次提交
  9. 11 6月, 2009 3 次提交
  10. 18 5月, 2009 1 次提交
    • D
      Fix oops on close of hot-unplugged FTDI serial converter · 80193195
      David Woodhouse 提交于
      Commit c45d6320 ("fix reference counting of ftdi_private") stopped
      ftdi_sio_port_remove() from directly freeing the port-private data, with
      the intention if the port was still open, it would be freed when
      ftdi_close() is eventually called and releases the last refcount on the
      structure.
      
      That's all very well, but ftdi_sio_port_remove() still contains a call
      to usb_set_serial_port_data(port, NULL) -- so by the time we get to
      ftdi_close() for the port which was unplugged, it _still_ oopses on
      dereferencing that NULL pointer, as it did before (and does in 2.6.29).
      
      The fix is just not to clear the private data in ftdi_sio_port_remove().
      Then the refcount is properly reduced to zero when the final kref_put()
      happens in ftdi_close().
      
      Remove a bogus comment too, while we're at it. And stop doing things
      inside "if (priv)" -- it must _always_ be there.
      
      Based loosely on an earlier patch by Daniel Mack, and suggestions by
      Alan Stern.
      Signed-off-by: NDavid Woodhouse <David.Woodhouse@intel.com>
      Tested-by: NDaniel Mack <daniel@caiaq.de>
      Cc: stable@kernel.org
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      80193195
  11. 09 5月, 2009 2 次提交
  12. 18 4月, 2009 1 次提交
  13. 25 3月, 2009 3 次提交
  14. 18 3月, 2009 2 次提交
  15. 10 2月, 2009 2 次提交
  16. 28 1月, 2009 2 次提交
  17. 16 1月, 2009 1 次提交
  18. 03 1月, 2009 1 次提交
  19. 18 12月, 2008 1 次提交
    • A
      USB: ftdi_sio: Adding Ewert Energy System's CANdapter PID · 01ba0856
      Andrew Ewert 提交于
      The following patch adds in the USB PID for Ewert Energy System's CANdapter
      device (CANBUS to USB-Serial which uses the FTDI 245R chipset) to the ftdi_sio
      device driver.
      
      The patch was tested successfully on Linux kernel 2.6.27 under Ubuntu.
      
      Relevant output from /proc/bus/usb/devices (With patch installed):
      
      T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=12  MxCh= 0
      D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
      P:  Vendor=0403 ProdID=9f80 Rev= 6.00
      S:  Manufacturer=Ewert Energy Systems
      S:  Product=CANdapter
      S:  SerialNumber=A6RGB3Z3
      C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr= 90mA
      I:* If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=ftdi_sio
      E:  Ad=81(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
      E:  Ad=02(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
      Signed-off-by: NAndrew Ewert <andrew@ewertenergy.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      01ba0856