From fa2d7795b2e859574c86cf186e488d12178d51b3 Mon Sep 17 00:00:00 2001 From: Ohad Ben-Cohen Date: Thu, 9 Feb 2012 15:16:41 +0200 Subject: [PATCH] rpmsg: fix name service endpoint leak The name service endpoint wasn't destroyed, so fix it. This is achieved by introducing an internal __rpmsg_destroy_ept function which doesn't assume the given ept is bound to an rpmsg channel (much like the existing __rpmsg_create_ept). This is needed because the name service ept belongs to the rpmsg bus, and is never bound with a specific rpdev. Reported-by: Omar Ramirez Luna Signed-off-by: Ohad Ben-Cohen Cc: Grant Likely Cc: Arnd Bergmann Cc: Mark Grosen Cc: Suman Anna Cc: Fernando Guzman Lugo Cc: Rob Clark Cc: Ludovic BARRE Cc: Loic PALLARDY Cc: Omar Ramirez Luna --- Reading git-format-patch failed