Commit 1c29d4c3 authored by Suman Anna's avatar Suman Anna Committed by Hari Kanigeri

SYSLINK: ipc - fixed api return status in messageq and listmo

This patch fixes the problem with the premature exit of module ioctl
functions. This has caused the api return status to be not visible in
the user-space.

Signed-off-by; Suman Anna <s-anna@ti.com>
parent 1bf10093
......@@ -653,7 +653,7 @@ int listmp_sharedmemory_ioctl(struct inode *inode, struct file *filp,
os_status = -ENOTTY;
break;
}
if (!os_status)
if (os_status < 0)
goto exit;
/* Copy the full args to the user-side. */
......
......@@ -475,7 +475,7 @@ int messageq_ioctl(struct inode *inode, struct file *filp,
os_status = -ENOTTY;
break;
}
if (!os_status)
if (os_status < 0)
goto exit;
/* Copy the full args to the user-side. */
......
......@@ -319,7 +319,7 @@ int messageq_transportshm_ioctl(struct inode *inode, struct file *filp,
os_status = -ENOTTY;
break;
}
if (!os_status)
if (os_status < 0)
goto exit;
/* Copy the full args to the user-side. */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment