diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2016-12-20 17:48:35 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-01-04 04:44:24 -0500 |
commit | fef7083e516ff6da4681ea8aaeedc114c6f2c821 (patch) | |
tree | eab34b2dcf4465e69b1b3cda7afc8857deb2601c /drivers/gpu/nvgpu/gp10b/gp10b.c | |
parent | b6031e4e15f4afe4bed9965ecca1e2cf6d08342e (diff) |
gpu: nvgpu: Do not dereference NULL wait_cmd
In gk20a_submit_prepare_syncs(), after we have allocated wait_cmd
we check the results. If we failed to allocate wait_cmd, we still
jump to the error label that tries to free wait_cmd.
Create an own error labal for allocation before wait_cmd, and use
that if we fail to allocate wait_cmd.
Similarly create an error label for incr_cmd, and use that only once
incr_cmd has actually been allocated.
Change-Id: I1f8bc1d947c524038f5f237358a5e6b0dc2e6ac3
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/1275742
GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b/gp10b.c')
0 files changed, 0 insertions, 0 deletions