mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 09:57:08 +03:00
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>
This commit is contained in:
committed by
Sachin Nikam
parent
7844397404
commit
aa2000ff91
@@ -2796,12 +2796,13 @@ int gk20a_fifo_update_runlist_ids(struct gk20a *g, u32 runlist_ids, u32 hw_chid,
|
||||
u32 ret = -EINVAL;
|
||||
u32 runlist_id = 0;
|
||||
u32 errcode;
|
||||
unsigned long ulong_runlist_ids = (unsigned long)runlist_ids;
|
||||
|
||||
if (!g)
|
||||
goto end;
|
||||
|
||||
ret = 0;
|
||||
for_each_set_bit(runlist_id, (unsigned long *)&runlist_ids, 32) {
|
||||
for_each_set_bit(runlist_id, &ulong_runlist_ids, 32) {
|
||||
/* Capture the last failure error code */
|
||||
errcode = g->ops.fifo.update_runlist(g, runlist_id, hw_chid, add, wait_for_finish);
|
||||
if (errcode) {
|
||||
|
||||
Reference in New Issue
Block a user