drm/radeon: add a check for allocation failure (v2)
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 7 Aug 2014 15:27:37 +0000 (18:27 +0300)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 15 Aug 2014 04:58:17 +0000 (00:58 -0400)
commit68b1ea30e4b64c6c5a1ed7c1970062d61c1a892c
tree71a6ee059681061434df34f99633e46d43b6275c
parent4fb0bbd5d0f13f39a2fe5e092a64cece3a4afcb9
drm/radeon: add a check for allocation failure (v2)

We can easily return -ENOMEM here if kzalloc() fails.

v2: agd5f: drop the vm mutex

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon_vm.c