Thread (8 messages) 8 messages, 3 authors, 2004-01-10

Re: [PATCH] Bugs in xfrm

flat view

From: David S. Miller <hidden>
Date: 2004-01-10 04:48:08

On Fri, 9 Jan 2004 17:40:03 -0800 (PST)
Krishna Kumar [off-list ref] wrote:
These changes compile cleanly, but I couldn't test since these are
corner cases. Please let me know if this can be applied. I am sending
as one patch file for now instead of multiple files as they all small.
Maybe you should actually try to test these changes before I think
about applying them, for example:
quoted hunk ↗ jump to hunk
+void dst_bundle_free(struct dst_entry *dst)
+{
+	struct dst_entry *next;
+
+	while (dst) {
+		next = dst->child;
+		dst_free(dst);
+	}
+}
Explain to me how that won't loop forever if given a non-NULL dst?

Next, this dst_bundle_free() thing is totally not needed as far as I can
tell.  When dst_free() is made, the top-level of the bundle's dst gets added
to the garbage collection list, the garbage collection properly walks the
children to process the whole bundle.

Please redo this patch and please test it this time :)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help