From: Ben Pfaff Date: Wed, 25 Aug 2010 20:17:01 +0000 (-0700) Subject: wdp: Correct comment describing wdp_port_query_by_name() semantics. X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=66d72f0e0b1455384434b46354f1ae3743f61b2a;p=sliver-openvswitch.git wdp: Correct comment describing wdp_port_query_by_name() semantics. Reported-by: Tsvi Slonim --- 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: *