drm/amdkfd: validate pdd where it acquired first
authorManinder Singh <maninder1.s@samsung.com>
Thu, 9 Jul 2015 09:11:53 +0000 (14:41 +0530)
committerOded Gabbay <oded.gabbay@gmail.com>
Thu, 9 Jul 2015 10:27:52 +0000 (13:27 +0300)
commita0f67441b06525a1e5fd713ba0d75af4e5d6b198
tree950cc3374a7a15424004737aa30093d6e4407a8d
parentd770e558e21961ad6cfdf0ff7df0eb5d7d4f0754
drm/amdkfd: validate pdd where it acquired first

Currently pdd is validate after dereferencing it, which is
not correct, Thus validate pdd before its first use.

Signed-off-by: Maninder Singh <maninder1.s@samsung.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/gpu/drm/amd/amdkfd/kfd_process.c