Commit 1f573836 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 fded8d42
...@@ -653,7 +653,7 @@ int listmp_sharedmemory_ioctl(struct inode *inode, struct file *filp, ...@@ -653,7 +653,7 @@ int listmp_sharedmemory_ioctl(struct inode *inode, struct file *filp,
os_status = -ENOTTY; os_status = -ENOTTY;
break; break;
} }
if (!os_status) if (os_status < 0)
goto exit; goto exit;
/* Copy the full args to the user-side. */ /* Copy the full args to the user-side. */
......
...@@ -475,7 +475,7 @@ int messageq_ioctl(struct inode *inode, struct file *filp, ...@@ -475,7 +475,7 @@ int messageq_ioctl(struct inode *inode, struct file *filp,
os_status = -ENOTTY; os_status = -ENOTTY;
break; break;
} }
if (!os_status) if (os_status < 0)
goto exit; goto exit;
/* Copy the full args to the user-side. */ /* Copy the full args to the user-side. */
......
...@@ -319,7 +319,7 @@ int messageq_transportshm_ioctl(struct inode *inode, struct file *filp, ...@@ -319,7 +319,7 @@ int messageq_transportshm_ioctl(struct inode *inode, struct file *filp,
os_status = -ENOTTY; os_status = -ENOTTY;
break; break;
} }
if (!os_status) if (os_status < 0)
goto exit; goto exit;
/* Copy the full args to the user-side. */ /* 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