summaryrefslogtreecommitdiffstats
path: root/runtime/transport/procfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/transport/procfs.c')
-rw-r--r--runtime/transport/procfs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/transport/procfs.c b/runtime/transport/procfs.c
index d083fb64..b878a0f5 100644
--- a/runtime/transport/procfs.c
+++ b/runtime/transport/procfs.c
@@ -103,7 +103,8 @@ static ssize_t _stp_proc_write_cmd (struct file *file, const char __user *buf,
return 0;
if (copy_from_user (&ti, &buf[4], sizeof(struct transport_info)))
return -EFAULT;
- _stp_transport_open (&ti);
+ if (_stp_transport_open (&ti) < 0)
+ return -1;
break;
}
default: