From: Paul Moore Date: Fri, 5 Jan 2007 00:56:46 +0000 (-0800) Subject: [INET]: Fix incorrect "inet_sock->is_icsk" assignment. X-Git-Tag: v2.6.20-rc5~33^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cbbd7d4f36a61631f8c0d73be43df985d1e7d6a6;p=pandora-kernel.git [INET]: Fix incorrect "inet_sock->is_icsk" assignment. The inet_create() and inet6_create() functions incorrectly set the inet_sock->is_icsk field. Both functions assume that the is_icsk field is large enough to hold at least a INET_PROTOSW_ICSK value when it is actually only a single bit. This patch corrects the assignment by doing a boolean comparison whose result will safely fit into a single bit field. Signed-off-by: Paul Moore Signed-off-by: David S. Miller --- Reading git-diff-tree failed