]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - ipc/ipcdev.git/blobdiff - linux/src/transport/TransportRpmsg.c
TransportRpmsg: Fix Check for Invalid Socket
[ipc/ipcdev.git] / linux / src / transport / TransportRpmsg.c
index 7eb33563e19314f8006d5e9164b218c52ffe2d0a..c236e200296ab67ad0a6e417b6879cc7201c26a1 100644 (file)
@@ -466,7 +466,7 @@ Bool TransportRpmsg_put(Void *handle, Ptr pmsg)
      */
     clusterId = msg->dstProc - MultiProc_getBaseIdOfCluster();
     sock = TransportRpmsg_module->sock[clusterId];
-    if (!sock) {
+    if (sock == INVALIDSOCKET) {
         return FALSE;
     }