crypto: digest: Return -errno if lseek() fails
Strictly speaking, lseek() doesn't return a detailed error code as its
return value and it can and should be obtained via 'errno'. In this
case this change also allows us to avoid potential problems from
downconverting 'loff_t' to 'int'.

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent b977190 commit 64e88dd12960c6d629f997c4ee552377f597db02
@Andrey Smirnov Andrey Smirnov authored on 16 Jan 2019
Sascha Hauer committed on 17 Jan 2019
Showing 1 changed file
View
crypto/digest.c