Re: [PATCH] drm/amdkfd: fix loop error handling

2022-02-10 Thread Felix Kuehling
Am 2022-02-10 um 12:04 schrieb t...@redhat.com: From: Tom Rix Clang static analysis reports this problem kfd_chardev.c:2594:16: warning: The expression is an uninitialized value. The computed value will also be garbage while (ret && i--) { ^~~ i is a loop

[PATCH] drm/amdkfd: fix loop error handling

2022-02-10 Thread trix
From: Tom Rix Clang static analysis reports this problem kfd_chardev.c:2594:16: warning: The expression is an uninitialized value. The computed value will also be garbage while (ret && i--) { ^~~ i is a loop variable and this block unwinds a problem in the loop.