Re: [PATCH net-next] cnic: Explicitly initialize all reference counts to 0.

2019-08-05 Thread David Miller
From: Michael Chan Date: Fri, 2 Aug 2019 02:17:51 -0400 > The driver is relying on zero'ed allocated memory and does not > explicitly call atomic_set() to initialize the ref counts to 0. Add > these atomic_set() calls so that it will be more straight forward > to convert atomic ref counts to re

[PATCH net-next] cnic: Explicitly initialize all reference counts to 0.

2019-08-01 Thread Michael Chan
The driver is relying on zero'ed allocated memory and does not explicitly call atomic_set() to initialize the ref counts to 0. Add these atomic_set() calls so that it will be more straight forward to convert atomic ref counts to refcount_t. Reported-by: Chuhong Yuan Cc: Rasesh Mody Cc: Signed-