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

Branch HEAD

b=15828
i=adilger
i=umka

return "-EIO" when write to read only proc interface which "write_proc" is NULL.
parent e39b2534
No related branches found
No related tags found
No related merge requests found
...@@ -183,7 +183,7 @@ out: ...@@ -183,7 +183,7 @@ out:
static ssize_t lprocfs_fops_write(struct file *f, const char __user *buf, size_t size, loff_t *ppos) 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); struct proc_dir_entry *dp = PDE(f->f_dentry->d_inode);
int rc = 0; int rc = -EIO;
LPROCFS_ENTRY(); LPROCFS_ENTRY();
if (!dp->deleted && dp->write_proc) 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