summaryrefslogtreecommitdiff
path: root/include/iscsi_err.h
diff options
context:
space:
mode:
authorLee Duncan <lduncan@suse.com>2018-09-24 16:37:19 -0700
committerLee Duncan <lduncan@suse.com>2018-09-26 10:53:53 -0700
commit09d7031cb462889392090e71991a89c522d387bc (patch)
tree3148347cb680c351673a472703027957a5cf4cfd /include/iscsi_err.h
parent7df5edbb427c79337bdd651c2bcdda8eb05f077b (diff)
downloadopen-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