diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2017-03-22 10:10:23 +0100 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2017-03-22 10:16:13 +0100 |
commit | dede98ffb706676309488d7cc660f569548d5930 (patch) | |
tree | e12fe749895ca39dcb67d66ce63ace9b71411ab0 /tests/unittests/sysfs_mock/class/mtd/mtd0/size | |
parent | a2eeedb0a7af1d8ebe8593cb9a9bb994d2854e63 (diff) |
Return correct error number in ubi_get_vol_info1
If the specified UBI device or volume does not exist, the function
is supposed to set errno to ENODEV.
This patch adds a check to ubi_get_vol_info1 to change the errno
to ENODEV if vol_get_major cannot access the underlying sysfs file,
so the function propperly returns that the device or volume does
not exist, instead of failing with errno set to ENOENT.
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'tests/unittests/sysfs_mock/class/mtd/mtd0/size')
0 files changed, 0 insertions, 0 deletions