From d256b8334e6c6e7793b6ee91b4a0893f9892d90a Mon Sep 17 00:00:00 2001 From: chao an Date: Sun, 20 Nov 2022 21:43:42 +0800 Subject: [PATCH] drivers/mtd: destroy nxmutex properly --- drivers/mtd/rpmsgmtd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mtd/rpmsgmtd.c b/drivers/mtd/rpmsgmtd.c index 7612cb06bf..aeaa83814f 100644 --- a/drivers/mtd/rpmsgmtd.c +++ b/drivers/mtd/rpmsgmtd.c @@ -1109,6 +1109,7 @@ fail_with_rpmsg: fail: nxsem_destroy(&dev->wait); + nxmutex_destroy(&dev->geolock); kmm_free(dev); return ret; }