From 66d72f0e0b1455384434b46354f1ae3743f61b2a Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Wed, 25 Aug 2010 13:17:01 -0700 Subject: [PATCH] wdp: Correct comment describing wdp_port_query_by_name() semantics. Reported-by: Tsvi Slonim --- ofproto/wdp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ofproto/wdp.c b/ofproto/wdp.c index 5f8078b06..c48b2d777 100644 --- a/ofproto/wdp.c +++ b/ofproto/wdp.c @@ -625,8 +625,8 @@ wdp_port_del(struct wdp *wdp, uint16_t port_no) * initializes 'port' with port details. On failure, returns a positive errno * value and clears the contents of 'port' (with wdp_port_clear()). * - * The caller must not modify or free the returned wdp_port. Calling - * wdp_run() or wdp_port_poll() may free the returned wdp_port. + * The caller takes ownership of everything in '*portp' and will eventually + * free it with, e.g., wdp_port_free(). * * Possible error return values include: * -- 2.43.0