Staging: vme: Correct operation of vme_lm_free
authorMartyn Welch <martyn.welch@gefanuc.com>
Thu, 29 Oct 2009 16:35:08 +0000 (16:35 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Dec 2009 20:23:18 +0000 (12:23 -0800)
commit8be9226c8f686c6dd2bae0a7ed4f5795e89d32d8
tree6d771abef2e3082b50d2e0bd17fba8c644870cce
parent59c2290428dd93a4117aa453fc4c2be38da288c0
Staging: vme: Correct operation of vme_lm_free

The vme_lm_free() function is not clearing up the resource created in
vme_lm_request(). In addition vme_lm_free() is void function and is used in
exit/error paths, we should wait for mutex to become free rather than
exiting and not freeing the resource.

Signed-off-by: Martyn Welch <martyn.welch@gefanuc.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/vme/vme.c