- bail out on read errors - test for -1 instead of < 0 for lseek Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>