From: Dan Carpenter Date: Fri, 10 Sep 2010 01:56:16 +0000 (+0000) Subject: net/llc: make opt unsigned in llc_ui_setsockopt() X-Git-Tag: v2.6.36-rc5~12^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=339db11b219f36cf7da61b390992d95bb6b7ba2e;p=pandora-kernel.git net/llc: make opt unsigned in llc_ui_setsockopt() The members of struct llc_sock are unsigned so if we pass a negative value for "opt" it can cause a sign bug. Also it can cause an integer overflow when we multiply "opt * HZ". CC: stable@kernel.org Signed-off-by: Dan Carpenter Signed-off-by: David S. Miller --- Reading git-diff-tree failed