]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: slave-eeprom: fix boundary check when using sysfs
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Mon, 19 Jan 2015 16:22:55 +0000 (17:22 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Sat, 24 Jan 2015 04:43:44 +0000 (05:43 +0100)
commit75f45b20110968a5bc32599d82e48badaef7c511
tree0c487df83eec5c2bfc04ef3c28155109fe49a823
parent2d5d40bdde0852204b13f4ea55fd371c7099a6a3
i2c: slave-eeprom: fix boundary check when using sysfs

Due to a copy&paste error, the last byte of the shared memory was not
accessible via sysfs.

Reported-by: Debora Grosse <debora@mds.com>
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/i2c-slave-eeprom.c