1. 08 Feb, 2018 1 commit
    • Dan Carpenter's avatar
      regmap: Fix reversed bounds check in regmap_raw_write() · f00e7109
      Dan Carpenter authored
      We're supposed to be checking that "val_len" is not too large but
      instead we check if it is smaller than the max.
      
      The only function affected would be regmap_i2c_smbus_i2c_write() in
      drivers/base/regmap/regmap-i2c.c.  Strangely that function has its own
      limit check which returns an error if (count >= I2C_SMBUS_BLOCK_MAX) so
      it doesn't look like it has ever been able to do anything except return
      an error.
      
      Fixes: c335931e ("regmap: Add raw_write/read checks for max_raw_write/read sizes")
      Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      Cc: stable@vger.kernel.org
      f00e7109
  2. 12 Jan, 2018 4 commits
  3. 08 Jan, 2018 3 commits
  4. 07 Jan, 2018 8 commits
  5. 06 Jan, 2018 7 commits
  6. 05 Jan, 2018 17 commits