Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=58791fd81dabdd0552c63625f231d16c9060ec84
Commit:     58791fd81dabdd0552c63625f231d16c9060ec84
Parent:     8559840c4ca3f2fff73a882803bc8916078fac1f
Author:     Jean Delvare <[EMAIL PROTECTED]>
AuthorDate: Thu Mar 22 19:49:00 2007 +0100
Committer:  Jean Delvare <[EMAIL PROTECTED]>
CommitDate: Thu Mar 22 19:49:00 2007 +0100

    i2c-amd8111: Missed cleanup
    
    I missed one cleanup in my previous patch.
    
    Signed-off-by: Jean Delvare <[EMAIL PROTECTED]>
---
 drivers/i2c/busses/i2c-amd8111.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/drivers/i2c/busses/i2c-amd8111.c b/drivers/i2c/busses/i2c-amd8111.c
index e15f9e3..0c70f82 100644
--- a/drivers/i2c/busses/i2c-amd8111.c
+++ b/drivers/i2c/busses/i2c-amd8111.c
@@ -254,7 +254,8 @@ static s32 amd8111_access(struct i2c_adapter * adap, u16 
addr,
                        break;
 
                case I2C_SMBUS_BLOCK_PROC_CALL:
-                       len = min_t(u8, data->block[0], 31);
+                       len = min_t(u8, data->block[0],
+                                   I2C_SMBUS_BLOCK_MAX - 1);
                        amd_ec_write(smbus, AMD_SMB_CMD, command);
                        amd_ec_write(smbus, AMD_SMB_BCNT, len);
                        for (i = 0; i < len; i++)
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to