mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-25 02:52:51 +03:00
gpu: nvgpu: fix Coverity issues
- operands not affecting result (id = 12845) - logically dead code (id = 12890) - dereference after null check (id = 12968) - unsigned compared to 0 (id = 13176) - resource leak (id = 13338, 18673) - unused pointer value (id = 13916) Bug 1703084 Change-Id: I2f401dd93126af27748c53fa1b3a59cb154af36b Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: http://git-master/r/835143 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Sachin Nikam <snikam@nvidia.com>
This commit is contained in:
committed by
Sachin Nikam
parent
836027806d
commit
10f6da09eb
@@ -1735,7 +1735,7 @@ int gk20a_vm_get_compbits_info(struct vm_gk20a *vm,
|
||||
|
||||
mapped_buffer = find_mapped_buffer_locked(&vm->mapped_buffers, mapping_gva);
|
||||
|
||||
if (!mapped_buffer | !mapped_buffer->user_mapped)
|
||||
if (!mapped_buffer || !mapped_buffer->user_mapped)
|
||||
{
|
||||
mutex_unlock(&vm->update_gmmu_lock);
|
||||
gk20a_err(d, "%s: bad offset 0x%llx", __func__, mapping_gva);
|
||||
|
||||
Reference in New Issue
Block a user