grahpics: Shouldn't call mq_close in kernel server

change to nxmq_close instead

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2021-02-16 00:45:31 +08:00 committed by Abdelatif Guettouche
parent d9a1b67120
commit 6e08c4dca3
1 changed files with 1 additions and 1 deletions

View File

@ -210,7 +210,7 @@ static inline int nxmu_setup(FAR const char *mqname, FAR NX_DRIVERTYPE *dev,
if (nxmu->conn.swrmq < 0)
{
gerr("ERROR: nxmq_open(%s) failed: %d\n", mqname, nxmu->conn.swrmq);
mq_close(nxmu->conn.crdmq);
nxmq_close(nxmu->conn.crdmq);
return nxmu->conn.swrmq;
}