From: Emilio G. Cota Date: Fri, 3 Dec 2010 09:05:08 +0000 (+0000) Subject: staging/vme_user: fix usage of the slave resources after they've been freed X-Git-Tag: v2.6.38-rc1~423^2~130 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1daa38d379932bde0d2036c2e10ced3e8842b74f;p=pandora-kernel.git staging/vme_user: fix usage of the slave resources after they've been freed buf_unalloc() frees the memory buffers allocated with vme_alloc_consistent. The associated VME resource is needed in both vme_alloc_consistent and vme_free_consistent; however the slave VME resources are being freed before the calls to vme_free_consistent are made, which means the buffers are never returned. Fix this by freeing the VME resources only after the consistent buffers have been returned. Signed-off-by: Emilio G. Cota Acked-by: Martyn Welch Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed