1. 27 5月, 2010 1 次提交
    • K
      Input: ads7846 - return error on regulator_get() failure · 067fb2f6
      Kevin Hilman 提交于
      In probe(), if regulator_get() failed, an error code was not being
      returned causing the driver to be successfully bound, even though
      probe failed.  This in turn caused the suspend, resume and remove
      methods to be registered and accessed via the SPI core.  Since these
      functions all access private driver data using pointers that had been
      freed during the failed probe, this would lead to unpredictable
      behavior.
      
      This patch ensures that probe() returns an error code in this failure
      case so the driver is not bound.
      
      Found using lockdep and noticing the lock used in the suspend/resum
      path pointed to a bogus lock due to the freed memory.
      Signed-off-by: NKevin Hilman <khilman@deeprootsystems.com>
      Acked-by: NMike Frysinger <vapier@gentoo.org>
      Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
      067fb2f6
  2. 22 5月, 2010 2 次提交
  3. 21 5月, 2010 1 次提交
  4. 20 5月, 2010 13 次提交
  5. 17 5月, 2010 3 次提交
  6. 16 5月, 2010 12 次提交
  7. 15 5月, 2010 8 次提交
新手
引导
客服 返回
顶部