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:
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)
|
if (nxmu->conn.swrmq < 0)
|
||||||
{
|
{
|
||||||
gerr("ERROR: nxmq_open(%s) failed: %d\n", mqname, nxmu->conn.swrmq);
|
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;
|
return nxmu->conn.swrmq;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue