From: David S. Miller Date: Mon, 11 Jun 2012 11:13:57 +0000 (-0700) Subject: inet: Avoid potential NULL peer dereference. X-Git-Tag: v3.6-rc1~125^2~566 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b34ca2ac7063f4ebf07f85fd75253ed84d5c648;p=pandora-kernel.git inet: Avoid potential NULL peer dereference. We handle NULL in rt{,6}_set_peer but then our caller will try to pass that NULL pointer into inet_putpeer() which isn't ready for it. Fix this by moving the NULL check one level up, and then remove the now unnecessary NULL check from inetpeer_ptr_set_peer(). Reported-by: Eric Dumazet Signed-off-by: David S. Miller --- Reading git-diff-tree failed