summaryrefslogtreecommitdiff
path: root/drivers/net/dsa
diff options
context:
space:
mode:
authorMichael Chan <michael.chan@broadcom.com>2019-08-02 09:17:51 +0300
committerDavid S. Miller <davem@davemloft.net>2019-08-05 23:21:55 +0300
commit0dfa0bed9662db680db2cc06457b8d152a2f22af (patch)
treecdff864480799ba5cab07e8183fb33655ad87770 /drivers/net/dsa
parent43a4b60d04362185cd5475fd77a02bf6c56c07e4 (diff)
downloadlinux-0dfa0bed9662db680db2cc06457b8d152a2f22af.tar.xz
cnic: Explicitly initialize all reference counts to 0.
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 <hslester96@gmail.com> Cc: Rasesh Mody <rmody@marvell.com> Cc: <GR-Linux-NIC-Dev@marvell.com> Signed-off-by: Michael Chan <michael.chan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa')
0 files changed, 0 insertions, 0 deletions