Commit 0dfa0be
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>1 parent 43a4b60 commit 0dfa0be
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4096 | 4096 | | |
4097 | 4097 | | |
4098 | 4098 | | |
| 4099 | + | |
4099 | 4100 | | |
4100 | 4101 | | |
4101 | 4102 | | |
4102 | 4103 | | |
4103 | 4104 | | |
4104 | 4105 | | |
| 4106 | + | |
| 4107 | + | |
| 4108 | + | |
4105 | 4109 | | |
4106 | 4110 | | |
4107 | 4111 | | |
| |||
5480 | 5484 | | |
5481 | 5485 | | |
5482 | 5486 | | |
| 5487 | + | |
5483 | 5488 | | |
5484 | 5489 | | |
5485 | 5490 | | |
| |||
0 commit comments