staging: vme: fix error return code in vme_user_probe()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Mon, 13 May 2013 06:05:38 +0000 (14:05 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 13 May 2013 21:34:22 +0000 (17:34 -0400)
commit465ff28db720d99d885ee9cd70af487745ea4a5a
tree23ca99a875291533687878808dc62203510cb589
parent70d52bce5523f2c6a7bf3f9a54dacc0be112a3e8
staging: vme: fix error return code in vme_user_probe()

Fix to return -ENOMEM in the resource alloc error handling
case instead of 0, as done elsewhere in this function.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vme/devices/vme_user.c