From: Mathias Krause Date: Sun, 3 Nov 2013 11:36:28 +0000 (+0100) Subject: ipc, msg: forbid negative values for "msg{max,mnb,mni}" X-Git-Tag: v3.12~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9bf76ca325d5e9208eb343f7bd4cc666f703ed30;p=pandora-kernel.git 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 Cc: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed