diff options
author | Alex Waterman <alexw@nvidia.com> | 2016-08-30 16:45:18 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2016-08-31 17:04:12 -0400 |
commit | 0ea97181f2505ed9ecd079e79e7d87d3b149e20f (patch) | |
tree | 5a9b2329f8f76c7e9a69026744a513fb338e5d76 /include/trace/events/gk20a.h | |
parent | 9247b610d201092c8f64b67dc141d2db66982aeb (diff) |
gpu: nvgpu: Fix error handling of __semaphore_bitmap_alloc()
The return from __semaphore_bitmap_alloc() is an int for which a
negative value indicates a failure. That return value was being
directly cast to an unsigned int before being checked for a
negative error code. This obviously isn't a good idea.
Coverity ID 38754
Change-Id: I50c0478e5504988b059e69b929e9c2e465df7cc0
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/1210317
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'include/trace/events/gk20a.h')
0 files changed, 0 insertions, 0 deletions