]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0a03d7b1580bb7f82d2ccbbe8fb543bf66bc7ccd
tree6d771abef2e3082b50d2e0bd17fba8c644870cce
parent885c786f874872ea44ef247be638ccb85055e989
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