Message ID | 1416408407-6774-3-git-send-email-kaike.wan@intel.com (mailing list archive) |
---|---|
State | Rejected |
Headers | show |
diff --git a/src/acm.c b/src/acm.c index 11fda4c..d807c73 100644 --- a/src/acm.c +++ b/src/acm.c @@ -1744,12 +1744,15 @@ static void acm_ep_up(struct acmc_port *port, uint16_t pkey) ret = acm_assign_ep_names(ep); if (ret) { acm_log(0, "ERROR - unable to assign EP name for pkey 0x%x\n", pkey); - goto err; + goto ep_close; } DListInsertHead(&ep->entry, &port->ep_list); return; +ep_close: + port->prov->close_endpoint(ep->prov_ep_context); + err: free(ep); }