[patch] amdkfd: fix some error handling in ioctl