1. 15 6月, 2016 2 次提交
  2. 10 6月, 2016 1 次提交
    • I
      HSI: cmt_speech: Fix double spin_lock · 3c13ab1d
      Iago Abal 提交于
      Release &hi->lock before calling `cs_hsi_control_read_error' to avoid deadlock.
      
      The bug was found using EBA (https://github.com/models-team/eba), which reported
      the following:
      
          Double lock
          first at drivers/hsi/clients/cmt_speech.c:443
          second at drivers/hsi/clients/cmt_speech.c:447
          In cs_hsi_read_on_control_complete defined at drivers/hsi/clients/cmt_speech.c:438:
          (!) drivers/hsi/clients/cmt_speech.c:443: spin_lock(& hi->lock);
          (?) drivers/hsi/clients/cmt_speech.c:445: msg->status == 4 -> true
          (!) drivers/hsi/clients/cmt_speech.c:447: cs_hsi_control_read_error(hi, msg);
              (!) drivers/hsi/clients/cmt_speech.c:407: __cs_hsi_error_pre(hi, msg, "control read",
                             & hi->control_state);
                  (!) drivers/hsi/clients/cmt_speech.c:382: spin_lock(& hi->lock);
      Signed-off-by: NIago Abal <mail@iagoabal.eu>
      Signed-off-by: NSebastian Reichel <sre@kernel.org>
      3c13ab1d
  3. 30 5月, 2016 2 次提交
  4. 29 5月, 2016 1 次提交
    • G
      Eliminate bad hash multipliers from hash_32() and hash_64() · ef703f49
      George Spelvin 提交于
      The "simplified" prime multipliers made very bad hash functions, so get rid
      of them.  This completes the work of 689de1d6.
      
      To avoid the inefficiency which was the motivation for the "simplified"
      multipliers, hash_64() on 32-bit systems is changed to use a different
      algorithm.  It makes two calls to hash_32() instead.
      
      drivers/media/usb/dvb-usb-v2/af9015.c uses the old GOLDEN_RATIO_PRIME_32
      for some horrible reason, so it inherits a copy of the old definition.
      Signed-off-by: NGeorge Spelvin <linux@sciencehorizons.net>
      Cc: Antti Palosaari <crope@iki.fi>
      Cc: Mauro Carvalho Chehab <m.chehab@samsung.com>
      ef703f49
  5. 28 5月, 2016 17 次提交
  6. 27 5月, 2016 16 次提交
  7. 26 5月, 2016 1 次提交