drivers/mtd: destroy nxmutex properly
This commit is contained in:
parent
3727de1a93
commit
d256b8334e
@ -1109,6 +1109,7 @@ fail_with_rpmsg:
|
||||
|
||||
fail:
|
||||
nxsem_destroy(&dev->wait);
|
||||
nxmutex_destroy(&dev->geolock);
|
||||
kmm_free(dev);
|
||||
return ret;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user