OSDN Git Service

fsi: scom: Add mutex around FSI2PIB accesses
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 12 Jun 2018 05:19:07 +0000 (15:19 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 18 Jun 2018 04:33:56 +0000 (14:33 +1000)
commit162c3946734d1f1950b413bbb3182d76d5be484b
tree8851f40603b3e88d4f1ed4fef1cb0d26261c9761
parent11454d6dc81813edb085b63b43b2e4df5e006218
fsi: scom: Add mutex around FSI2PIB accesses

Otherwise, multiple clients can open the driver and attempt
to access the PIB at the same time, thus clobbering each other
in the process.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Reviewed-by: Eddie James <eajames@linux.vnet.ibm.com>
drivers/fsi/fsi-scom.c