From: Eric Dumazet Date: Mon, 24 Sep 2012 07:00:11 +0000 (+0000) Subject: net: guard tcp_set_keepalive() to tcp sockets X-Git-Tag: v3.6~22^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e10986d1d698140747fcfc2761ec9cb64c1d582;p=pandora-kernel.git net: guard tcp_set_keepalive() to tcp sockets Its possible to use RAW sockets to get a crash in tcp_set_keepalive() / sk_reset_timer() Fix is to make sure socket is a SOCK_STREAM one. Reported-by: Dave Jones Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller --- Reading git-diff-tree failed