1. 26 4月, 2013 1 次提交
  2. 22 4月, 2013 1 次提交
    • A
      [media] cx88: Fix unsafe locking in suspend-resume · 5ddfbbb9
      Alexey Khoroshilov 提交于
      Legacy PCI suspend-resume handlers are called with interrupts enabled.
      
      But cx8800_suspend/cx8800_resume and
      cx8802_suspend_common/cx8802_resume_common use spin_lock/spin_unlock
      functions to acquire dev->slock, while the same lock is acquired in the
      corresponding irq-handlers: cx8800_irq and cx8802_irq.
      
      That means a deadlock is possible if an interrupt happens while suspend
      or resume owns the lock. The patch replaces spin_lock/spin_unlock with
      spin_lock_irqsave/spin_unlock_irqrestore.
      
      Found by Linux Driver Verification project (linuxtesting.org).
      
      [mchehab@redhat.com: Fix CodingStyle]
      Signed-off-by: NAlexey Khoroshilov <khoroshilov@ispras.ru>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      5ddfbbb9
  3. 17 4月, 2013 31 次提交
  4. 15 4月, 2013 7 次提交