lkml.org 
[lkml]   [2021]   [Oct]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH rdma-next v1] RDMA/core: Initialize lock when allocate a rdma_hw_stats structure
On Tue, Oct 26, 2021 at 11:43:03AM +0300, Leon Romanovsky wrote:
> From: Mark Zhang <markzhang@nvidia.com>
>
> Initialize the rdma_hw_stats "lock" field when do allocation, to fix the
> warning below. Then we don't need to initialize it in sysfs, remove it.

> drivers/infiniband/core/sysfs.c | 2 --
> drivers/infiniband/core/verbs.c | 1 +
> 2 files changed, 1 insertion(+), 2 deletions(-)

Applied to for-next

Jason

\
 
 \ /
  Last update: 2021-10-27 18:41    [W:0.038 / U:1.104 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site