Skip to content
Snippets Groups Projects
Commit 402b4e5b authored by Yong Fan's avatar Yong Fan
Browse files

Branch b1_6

b=15828
i=adilger
i=umka

return "-EIO" when write to read only proc interface which "write_proc" is NULL.
parent 4ebaed2b
No related branches found
No related tags found
No related merge requests found
......@@ -172,7 +172,7 @@ out:
static ssize_t lprocfs_fops_write(struct file *f, const char __user *buf, size_t size, loff_t *ppos)
{
struct proc_dir_entry *dp = PDE(f->f_dentry->d_inode);
int rc = 0;
int rc = -EIO;
LPROCFS_ENTRY();
if (!dp->deleted && dp->write_proc)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment