SIGN IN SIGN UP

Fix layer store Get locking

Get was calling getReference without layerL held. This meant writes to
the references map could race. Such races are dangerous because they can
corrupt the map and crash the process.

Fixes #21616
Fixes #21674

Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
(cherry picked from commit 0538981c31a714a4183e846a4b512deb7879cc29)
A
Aaron Lehmann committed
2e92a84fa8dd9047434f8496eb30d9f4fec63eae
Parent: deb08a1
Committed by Tibor Vass <tibor@docker.com> on 3/31/2016, 10:35:37 PM