diff options
author | Debarshi Dutta <ddutta@nvidia.com> | 2018-08-22 06:25:21 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-08-28 09:47:25 -0400 |
commit | 8676b2e65b786497c4a0609f06143e7d1bb1a3c0 (patch) | |
tree | 488f6b2cfda2e58a83b34f3b3316947d4bada51e /Makefile.umbrella.tmk | |
parent | 07d3387ceb10cdc4d4413d04b1223cbd5181438b (diff) |
gpu: nvgpu: handle return error correctly
nvgpu_os_fence_syncpt_create returns ERR_PTR instead of NULL whenever
its unable to construct a valid struct sync_fence instance. The
current code is not handled to detect errors returned using
ERR_PTR. This patch replaces the !fence check with IS_ERR() that
handles the return correctly.
Bug 200421587
Change-Id: I0ecfa8a651b8d5b743d11aab80d7a4cd71be8b1a
Signed-off-by: Debarshi Dutta <ddutta@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1804509
Reviewed-by: svc-misra-checker <svc-misra-checker@nvidia.com>
Reviewed-by: Konsta Holtta <kholtta@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'Makefile.umbrella.tmk')
0 files changed, 0 insertions, 0 deletions