Re: [Patch net-next] ipv6: fix a potential NULL deref
From: Cong Wang <hidden>
Date: 2012-10-29 06:49:33
From: Cong Wang <hidden>
Date: 2012-10-29 06:49:33
On Mon, 2012-10-29 at 07:10 +0100, Eric Dumazet wrote:
quoted
- dst_release(&rt->dst); + if (rt) + dst_release(&rt->dst); }dst_release() is like kfree(), it accepts a NULL argument.
'rt->dst' already dereferences 'rt', no matter dst_release() accepts NULL or not.