SCTP: missing spinlock init when multiple threads 22/10422/4
authorMarco Varlese <marco.varlese@suse.com>
Tue, 6 Feb 2018 08:01:39 +0000 (09:01 +0100)
committerDamjan Marion <dmarion.lists@gmail.com>
Tue, 6 Feb 2018 12:33:32 +0000 (12:33 +0000)
commitf47276f6fcf75197fb237b7742e45638fc750b8e
treed6152f233d521c8fc608bef1f3e3679623eed5ad
parentbbd41cd5da7b8db76a5faed22c061358c147f191
SCTP: missing spinlock init when multiple threads

When the number of threads results being more than 1, the spinlock
structure requires to be initialized otherwise subsequent calls to
the "lock" API (clib_spinlock_lock_if_init) would result in a void
operation.

Change-Id: Ia268c4687252e41962bb3f1217f0a849d8c40385
Signed-off-by: Marco Varlese <marco.varlese@suse.com>
src/vnet/sctp/sctp.c