Files
linux-nvgpu/drivers/gpu/nvgpu
Terje Bergstrom fef7083e51 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
2017-01-04 01:44:24 -08:00
..
2016-12-27 15:26:53 +05:30
2016-12-27 15:26:53 +05:30
2016-12-27 15:26:53 +05:30
2016-12-27 15:26:53 +05:30
2016-12-27 15:26:53 +05:30
2016-12-27 15:26:53 +05:30
2016-07-19 21:02:22 -07:00
2016-12-19 14:06:02 -08:00
2016-04-27 08:10:54 -07:00