drivers/mtd: destroy nxmutex properly

This commit is contained in:
chao an 2022-11-20 21:43:42 +08:00 committed by Xiang Xiao
parent 3727de1a93
commit d256b8334e
1 changed files with 1 additions and 0 deletions

View File

@ -1109,6 +1109,7 @@ fail_with_rpmsg:
fail: fail:
nxsem_destroy(&dev->wait); nxsem_destroy(&dev->wait);
nxmutex_destroy(&dev->geolock);
kmm_free(dev); kmm_free(dev);
return ret; return ret;
} }