summaryrefslogtreecommitdiffstats
path: root/fs/efivarfs.c
diff options
context:
space:
mode:
authorAndrey Smirnov <andrew.smirnov@gmail.com>2019-01-28 22:55:49 -0800
committerSascha Hauer <s.hauer@pengutronix.de>2019-02-06 08:31:13 +0100
commitcd4f8f89d3f71ba3a0a29fa212f5cc2cb8793c7f (patch)
tree59d56ea7edde4c2b882785afa1b66d1b699229ed /fs/efivarfs.c
parent684a457ea462707380b9ef6cc5659835f62122ab (diff)
downloadbarebox-cd4f8f89d3f71ba3a0a29fa212f5cc2cb8793c7f.tar.gz
barebox-cd4f8f89d3f71ba3a0a29fa212f5cc2cb8793c7f.tar.xz
libfile: Fix incorrect lseek check in open_and_lseek()
We can't use "int" to capture output of lseek which is "loff_t", since former does not cover all of the range of the values of the latter and any pos >= 0xffff_ffff will result in a false positive "failure". To avoid that replace the check to check that new position matches what was requested. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'fs/efivarfs.c')
0 files changed, 0 insertions, 0 deletions