]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit19f0e28886ab22c0a2ac7e1d8dbf0a6bf07432db
tree950cc3374a7a15424004737aa30093d6e4407a8d
parent7080a36663ec94f7ed976e9e162c15cc4a03bc56
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