[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20121126.172519.1733842286506154861.davem@davemloft.net>
Date: Mon, 26 Nov 2012 17:25:19 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: ncardwell@...gle.com
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH net] ipv4: avoid passing NULL to inet_putpeer() in
icmpv4_xrlim_allow()
From: Neal Cardwell <ncardwell@...gle.com>
Date: Sat, 24 Nov 2012 23:54:37 -0500
> 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 <ncardwell@...gle.com>
Applied, thanks a lot Neil.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists