ipv4: ipmr: fix NULL pointer deref during unres queue destruction
authorPatrick McHardy <kaber@trash.net>
Thu, 15 Apr 2010 11:29:28 +0000 (13:29 +0200)
committerPatrick McHardy <kaber@trash.net>
Thu, 15 Apr 2010 11:31:29 +0000 (13:31 +0200)
commit8de53dfbf9a0a0f7538c005137059c5c021476e1
tree51fbba0b36a24feac02fa76d4deaecfcdece7c7f
parentb0ebb739a8f68039f03e80b3476b204fe5adf0d7
ipv4: ipmr: fix NULL pointer deref during unres queue destruction

Fix an oversight in ipmr_destroy_unres() - the net pointer is
unconditionally initialized to NULL, resulting in a NULL pointer
dereference later on.

Fix by adding a net pointer to struct mr_table and using it in
ipmr_destroy_unres().

Signed-off-by: Patrick McHardy <kaber@trash.net>
net/ipv4/ipmr.c