diff options
author | Lee Duncan <lduncan@suse.com> | 2018-09-24 16:37:19 -0700 |
---|---|---|
committer | Lee Duncan <lduncan@suse.com> | 2018-09-26 10:53:53 -0700 |
commit | 09d7031cb462889392090e71991a89c522d387bc (patch) | |
tree | 3148347cb680c351673a472703027957a5cf4cfd /include/iscsi_err.h | |
parent | 7df5edbb427c79337bdd651c2bcdda8eb05f077b (diff) | |
download | open-iscsi-09d7031cb462889392090e71991a89c522d387bc.tar.gz |
Fix reading of sysfs signed integers when negative.
The code for reading all sysfs integer types (of all
sizes) did not work when reading signed integers and
the return value was negative. So when the default was -1
and the value was not present, the code tried to return -1.
But the logic for checking against "max value" was
incorrect, causing INT_MAX to be returned instead of -1.
Diffstat (limited to 'include/iscsi_err.h')
0 files changed, 0 insertions, 0 deletions