diff options
author | George Bauernschmidt <georgeb@nvidia.com> | 2016-07-08 02:24:40 -0400 |
---|---|---|
committer | Sachin Nikam <snikam@nvidia.com> | 2016-07-14 03:13:08 -0400 |
commit | aa2000ff9125423cf0d6875904a27402facf38dd (patch) | |
tree | c52b425889ff24af56bb7edb0cc11cec40dd3258 /drivers | |
parent | 7844397404b66df8952df42218c7907fd510e55d (diff) |
kernel: nvgpu: fix Coverity defect
Bug 1781383
CID 37989
- Changed for_each_set_bit addr parameter to unsigned long.
Change-Id: I3f3f314a1aea9d376d45699f870a9e372854f069
Signed-off-by: George Bauernschmidt <georgeb@nvidia.com>
Reviewed-on: http://git-master/r/1177417
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/fifo_gk20a.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c b/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c index 3e55e3c1..8c82fc68 100644 --- a/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c | |||
@@ -2796,12 +2796,13 @@ int gk20a_fifo_update_runlist_ids(struct gk20a *g, u32 runlist_ids, u32 hw_chid, | |||
2796 | u32 ret = -EINVAL; | 2796 | u32 ret = -EINVAL; |
2797 | u32 runlist_id = 0; | 2797 | u32 runlist_id = 0; |
2798 | u32 errcode; | 2798 | u32 errcode; |
2799 | unsigned long ulong_runlist_ids = (unsigned long)runlist_ids; | ||
2799 | 2800 | ||
2800 | if (!g) | 2801 | if (!g) |
2801 | goto end; | 2802 | goto end; |
2802 | 2803 | ||
2803 | ret = 0; | 2804 | ret = 0; |
2804 | for_each_set_bit(runlist_id, (unsigned long *)&runlist_ids, 32) { | 2805 | for_each_set_bit(runlist_id, &ulong_runlist_ids, 32) { |
2805 | /* Capture the last failure error code */ | 2806 | /* Capture the last failure error code */ |
2806 | errcode = g->ops.fifo.update_runlist(g, runlist_id, hw_chid, add, wait_for_finish); | 2807 | errcode = g->ops.fifo.update_runlist(g, runlist_id, hw_chid, add, wait_for_finish); |
2807 | if (errcode) { | 2808 | if (errcode) { |