mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
cov: sanitize function environment
Coverity can see that function is either used with 'dev' or 'def'.
This commit is contained in:
parent
a13dfcbc77
commit
30e27d2f8b
@ -379,6 +379,9 @@ static bool _read_bytes(struct device *dev, struct devicefile *def, uint64_t sta
|
||||
if (dev)
|
||||
return dev_read_bytes(dev, start, len, data);
|
||||
|
||||
if (!def)
|
||||
return false;
|
||||
|
||||
off = lseek(def->fd, start, SEEK_SET);
|
||||
if (off != start)
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user