diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2016-12-15 21:18:42 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-12-15 21:18:42 +0100 |
commit | d3ea547853852481dc5eba6d4cb13adab1564d0b (patch) | |
tree | 01d093ed7c8e6976b6c4150a97c0a02a41b2ff33 /drivers/hsi | |
parent | Merge tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dledfo... (diff) | |
download | linux-d3ea547853852481dc5eba6d4cb13adab1564d0b.tar.xz linux-d3ea547853852481dc5eba6d4cb13adab1564d0b.zip |
rdma: fix buggy code that the compiler warns about
Get rid of this warning:
drivers/infiniband/sw/rdmavt/cq.c: In function ‘rvt_cq_exit’:
drivers/infiniband/sw/rdmavt/cq.c:542:2: warning: ‘worker’ may be used uninitialized in this function [-Wmaybe-uninitialized]
kthread_destroy_worker(worker);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
by fixing the function to actually work.
Fixes: 6efaf10f163d ("IB/rdmavt: Avoid queuing work into a destroyed cq kthread worker")
Cc: Petr Mladek <pmladek@suse.com>
Cc: Doug Ledford <dledford@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/hsi')
0 files changed, 0 insertions, 0 deletions