cxl: Unlock on error in probe
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 5 May 2017 05:34:58 +0000 (08:34 +0300)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 6 Jun 2017 09:23:52 +0000 (19:23 +1000)
commit58d876fa7181f2f393190c1d32c056b5a9d34aa2
tree1615df4830fdfbf5c35a31bb8447ba0f3387ecfd
parent4386c096c2ffa1b3232d701e9d7ff82a1378e1c5
cxl: Unlock on error in probe

We should unlock if get_cxl_adapter() fails.

Fixes: 594ff7d067ca ("cxl: Support to flash a new image on the adapter from a guest")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Frederic Barrat <fbarrat@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
drivers/misc/cxl/flash.c