diff options
author | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-08-15 14:38:46 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-08-22 11:59:17 +1000 |
commit | 9198d4e022e45fdaaa49ea7ae5974da7d06a721b (patch) | |
tree | ea3cc184578cdfc8b5e025c1d491a793206483c7 | |
parent | ffc262f7a11de769b4b8fb21288a301dee0de756 (diff) | |
download | skiboot-9198d4e022e45fdaaa49ea7ae5974da7d06a721b.zip skiboot-9198d4e022e45fdaaa49ea7ae5974da7d06a721b.tar.gz skiboot-9198d4e022e45fdaaa49ea7ae5974da7d06a721b.tar.bz2 |
NPU2: fix missing unlock
Found by coccinelle using a slightly modified
http://coccinelle.lip6.fr/rules/mut.html spatch
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Reviewed-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
-rw-r--r-- | hw/npu2.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1865,8 +1865,8 @@ static int opal_npu_destroy_context(uint64_t phb_id, uint64_t pid, uint64_t bdf) /* And zero the entry */ npu2_write(p, NPU2_XTS_PID_MAP + id*0x20, 0); - unlock(&p->lock); out: + unlock(&p->lock); return rc; } opal_call(OPAL_NPU_DESTROY_CONTEXT, opal_npu_destroy_context, 3); |