diff options
author | Peter Daifuku <pdaifuku@nvidia.com> | 2017-07-25 18:20:49 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-07-27 03:24:36 -0400 |
commit | 1b5035132b8f28cb05a21eca4d2f7a4771e59914 (patch) | |
tree | 4600af8dc895a4e30f92b6d18e3e339a57f16177 /drivers/gpu/nvgpu/therm/thrmchannel.h | |
parent | 542a75a949186fa02880b606f606effa5bd04bd8 (diff) |
gpu: nvgpu: check for null priv in channel_release
gk20a_channel_release can still get called even if the open_channel call failed
(e.g., if we ran out of hw chids), in which case priv is null. Check for this
case and return if null.
Bug 1964531
Change-Id: I48bc88e4dbd88a1c30fc399de629d8f8b344cfd9
Signed-off-by: Peter Daifuku <pdaifuku@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1526544
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/therm/thrmchannel.h')
0 files changed, 0 insertions, 0 deletions