diff options
author | Andrey Smirnov <andrew.smirnov@gmail.com> | 2019-03-06 23:49:17 -0800 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-03-11 07:55:45 +0100 |
commit | cf6e01e07f0eb838c1a08756bd3cc575221d7730 (patch) | |
tree | 9cdc22fe853958bc85dfe5026e93b5b7c46f1ecf /common | |
parent | 41a5d444411b4f0dd7148b77a9533a5fdb4b5636 (diff) | |
download | barebox-cf6e01e07f0eb838c1a08756bd3cc575221d7730.tar.gz barebox-cf6e01e07f0eb838c1a08756bd3cc575221d7730.tar.xz |
bpkfs: Fix lseek error check in bpkfs_probe()
Don't use 'int' to store lseek()'s return value to avoid problems with
large seek offsets. While at it, make sure to populate return error
code from 'errno'.
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common')
0 files changed, 0 insertions, 0 deletions