1. 08 4月, 2010 3 次提交
    • B
      3c503: Fix IRQ probing · b0cf4dfb
      Ben Hutchings 提交于
      The driver attempts to select an IRQ for the NIC automatically by
      testing which of the supported IRQs are available and then probing
      each available IRQ with probe_irq_{on,off}().  There are obvious race
      conditions here, besides which:
      1. The test for availability is done by passing a NULL handler, which
         now always returns -EINVAL, thus the device cannot be opened:
         <http://bugs.debian.org/566522>
      2. probe_irq_off() will report only the first ISA IRQ handled,
         potentially leading to a false negative.
      
      There was another bug that meant it ignored all error codes from
      request_irq() except -EBUSY, so it would 'succeed' despite this
      (possibly causing conflicts with other ISA devices).  This was fixed
      by ab08999d 'WARNING: some
      request_irq() failures ignored in el2_open()', which exposed bug 1.
      
      This patch:
      1. Replaces the use of probe_irq_{on,off}() with a real interrupt handler
      2. Adds a delay before checking the interrupt-seen flag
      3. Disables interrupts on all failure paths
      4. Distinguishes error codes from the second request_irq() call,
         consistently with the first
      
      Compile-tested only.
      Signed-off-by: NBen Hutchings <ben@decadent.org.uk>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      b0cf4dfb
    • A
      caif: tty's are kref objects so take a reference · e31d5a05
      Alan Cox 提交于
      I don't think this can be abused in this case but do things properly.
      Signed-off-by: NAlan Cox <alan@linux.intel.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      e31d5a05
    • A
      caif: check write operations · c93f0940
      Alan Cox 提交于
      write is optional for a tty device. Check that we have a write op rather
      than calling NULL.
      Signed-off-by: NAlan Cox <alan@linux.intel.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      c93f0940
  2. 07 4月, 2010 13 次提交
  3. 06 4月, 2010 13 次提交
  4. 04 4月, 2010 11 次提交