]> git.ipfire.org Git - thirdparty/systemd.git/commit
limits-util: tweak overflow checks for (physical_memory|system_tasks)_max_scale()
authorLennart Poettering <lennart@poettering.net>
Wed, 17 Feb 2021 13:34:01 +0000 (14:34 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 18 Feb 2021 21:36:34 +0000 (22:36 +0100)
commit75b86b564ab89d146eeed8e7df6fdbcc363a8150
tree13861a8824db43dc6e1d7ce768adfbd537207ade
parent66e52d22210eeec86fd87bc4ff2cc0b107546750
limits-util: tweak overflow checks for (physical_memory|system_tasks)_max_scale()

Also, shortcut two special cases for passing through values as-is, so
that we are not needlessly subjected to overflow issues for them.
src/basic/limits-util.c