mirror of
https://github.com/apache/nuttx.git
synced 2026-05-20 12:33:27 +08:00
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:
committed by
Abdelatif Guettouche
parent
d9a1b67120
commit
6e08c4dca3
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user