]> git.karo-electronics.de Git - karo-tx-uboot.git/commit
fs/fs.c: correctly interpret the '(max)len' parameter to fs_read()
authorLothar Waßmann <LW@KARO-electronics.de>
Wed, 29 Jun 2016 09:06:58 +0000 (11:06 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Wed, 29 Jun 2016 09:12:37 +0000 (11:12 +0200)
commit01ced72cdb2dde4d334069f6170abf0f27b56dbc
tree20cbc14a4d1394627e831eac45642348fe0a9d05
parentdf349e8a55f2cd750d1a998901896b8237d5c777
fs/fs.c: correctly interpret the '(max)len' parameter to fs_read()

The 'len' parameter passed to fs_read() actually denotes the maximum
number of bytes that fit into the callers buffer, not an expected
amount of data to be read.
Rename the parameter accordingly and honor the maxlen requested by the
caller appropriately.
Also remove the bogus warning message printed when the number of bytes
read is smaller than maxlen.
board/karo/common/mmc.c
fs/fs.c