1. 15 10月, 2011 10 次提交
  2. 14 10月, 2011 1 次提交
  3. 12 10月, 2011 2 次提交
  4. 08 10月, 2011 11 次提交
  5. 01 10月, 2011 2 次提交
  6. 27 9月, 2011 2 次提交
  7. 26 9月, 2011 6 次提交
  8. 25 9月, 2011 5 次提交
  9. 24 9月, 2011 1 次提交
    • C
      [media] em28xx: fix race on disconnect · d7222e7d
      Chris Rankin 提交于
      This patch closes the race on the device and extension lists at USB disconnect
      time. Previously, the device was removed from the device list during
      em28xx_release_resources(), and then passed to the em28xx_close_extension()
      function so that all extensions could run their fini() operations. However, this
      left a (brief, theoretical, highly unlikely ;-)) window between these two calls
      during which a new module could call em28xx_register_extension(). The result
      would have been that the em28xx_usb_disconnect() function would also have passed
      the device to the new extension's fini() function, despite never having called
      the extension's init() function.
      
      This patch also restores em28xx_close_extension()'s symmetry with
      em28xx_init_extension(), and establishes the property that every device in the
      device list must have been initialised for every extension in the extension list.
      Signed-off-by: NChris Rankin <rankincj@yahoo.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      d7222e7d