Files
linux-nvgpu/drivers/gpu
Alex Waterman 9e43258438 gpu: nvgpu: Add checking in allocator functions
Add checks to make sure function pointers are valid before attempting
to call said function.

Also, ensure that any allocator created defines the following 3 functions
at minimum:

  alloc()
  free()
  fini()

Bug 1799159

Change-Id: I4cd3d5746ccb721c723a161c9487564846027572
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/1200059
(cherry picked from commit e26557a49d7ca6629ada24f12a3be396b0ae22cd)
Reviewed-on: http://git-master/r/1208476
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
2016-08-30 10:04:31 -07:00
..