From: David Miller <davem@davemloft.net>
Date: Wed, 24 Jan 2007 14:45:11 -0800 (PST)
From: ebiederm@xmission.com (Eric W. Biederman)
Date: Wed, 24 Jan 2007 13:09:40 -0700
quoted
While enhancing the neighbour code to handle multiple network
namespaces I noticed that decnet is assuming neigh_parms_alloc
will allways succeed, which is clearly wrong. So handle the
failure.
Signed-off-by: Eric W. Biederman <redacted>
I don't think this one is correct.
During failure cleanup you also have to invoke the neighbour parms
->down() operation if present, else you leave multicast entries on the
ethernet device for example.
BTW, it occurs to me that a good way to handle this might be to
try and do the neigh_parms_alloc() before running the ->up()
method.