From: Ohad Ben-Cohen Date: Thu, 9 Feb 2012 13:16:41 +0000 (+0200) Subject: rpmsg: fix name service endpoint leak X-Git-Tag: v3.4-rc1~87^2^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa2d7795b2e859574c86cf186e488d12178d51b3;p=pandora-kernel.git 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-diff-tree failed