1. 12 9月, 2007 2 次提交
  2. 11 9月, 2007 36 次提交
  3. 10 9月, 2007 2 次提交
    • H
      [CRYPTO] blkcipher: Fix inverted test in blkcipher_get_spot · 32528d0f
      Herbert Xu 提交于
      The previous patch had the conditional inverted.  This patch fixes it
      so that we return the original position if it does not straddle a page.
      
      Thanks to Bob Gilligan for spotting this.
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      32528d0f
    • D
      i2c-algo-bit: Read block data bugfix · 939bc494
      David Brownell 提交于
      This fixes a bug in the way i2c-algo-bit handles I2C_M_RECV_LEN,
      used to implement i2c_smbus_read_block_data().  Previously, in the
      absence of PEC (rarely used!) it would NAK the "length" byte:
      
      	S addr Rd [A] [length] NA
      
      That prevents the subsequent data bytes from being read:
      
      	S addr Rd [A] [length] { A [data] }* NA
      
      The primary fix just reorders two code blocks, so the length used
      in the "should I NAK now?" check incorporates the data which it
      just read from the slave device.
      
      However, that move also highlighted other fault handling glitches.
      This fixes those by abstracting the RX path ack/nak logic, so it
      can be used in more than one location.  Also, a few CodingStyle
      issues were also resolved.
      Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      939bc494