diff options
author | Mathias Krause | 2013-11-03 12:36:28 +0100 |
---|---|---|
committer | Linus Torvalds | 2013-11-03 19:53:11 +0100 |
commit | 9bf76ca325d5e9208eb343f7bd4cc666f703ed30 (patch) | |
tree | 0c6e992844c24162838013caa4f4f3356d6594dd /Documentation/ww-mutex-design.txt | |
parent | Merge tag 'fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/... (diff) | |
download | kernel-qcow2-linux-9bf76ca325d5e9208eb343f7bd4cc666f703ed30.tar.gz kernel-qcow2-linux-9bf76ca325d5e9208eb343f7bd4cc666f703ed30.tar.xz kernel-qcow2-linux-9bf76ca325d5e9208eb343f7bd4cc666f703ed30.zip |
ipc, msg: forbid negative values for "msg{max,mnb,mni}"
Negative message lengths make no sense -- so don't do negative queue
lenghts or identifier counts. Prevent them from getting negative.
Also change the underlying data types to be unsigned to avoid hairy
surprises with sign extensions in cases where those variables get
evaluated in unsigned expressions with bigger data types, e.g size_t.
In case a user still wants to have "unlimited" sizes she could just use
INT_MAX instead.
Signed-off-by: Mathias Krause <minipli@googlemail.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation/ww-mutex-design.txt')
0 files changed, 0 insertions, 0 deletions