OSDN Git Service

fsi: sbefifo: Fix inconsistent use of ffdc mutex
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 23 Jul 2018 06:27:21 +0000 (16:27 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 23 Jul 2018 06:27:32 +0000 (16:27 +1000)
commit4fcdc2d1b0c615331eb68b50da8e499223fac724
tree323726e9c52c61950fdd64c1e2bb461f983b3b6e
parent6a794a27daca9c5a39de13c03b0748bb2d4a7a70
fsi: sbefifo: Fix inconsistent use of ffdc mutex

Some of the exit path missed the unlock. Move the mutex to
an outer function to avoid the problem completely

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
drivers/fsi/fsi-sbefifo.c