From: Neal Cardwell Date: Sat, 24 Nov 2012 18:54:37 +0000 (+0000) Subject: ipv4: avoid passing NULL to inet_putpeer() in icmpv4_xrlim_allow() X-Git-Tag: v3.7-rc8~24^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e1a676424c290b1c8d757e3860170ac7ecd89af4;p=pandora-kernel.git ipv4: avoid passing NULL to inet_putpeer() in icmpv4_xrlim_allow() inet_getpeer_v4() can return NULL under OOM conditions, and while inet_peer_xrlim_allow() is OK with a NULL peer, inet_putpeer() will crash. This code path now uses the same idiom as the others from: 1d861aa4b3fb08822055345f480850205ffe6170 ("inet: Minimize use of cached route inetpeer."). Signed-off-by: Neal Cardwell Signed-off-by: David S. Miller --- Reading git-diff-tree failed