X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=fs%2Fproc%2Finode.c;h=f495fdb391517a607dff7dbc495a7a50d83189a2;hb=3f61631d47f115b83c935d0039f95cb68b0c8ab7;hp=f130499ad8432db69e1b728d2edae0ac99e4f632;hpb=3bc1bc0b59d04e997db25b84babf459ca1cd80b7;p=linux-2.6-microblaze.git diff --git a/fs/proc/inode.c b/fs/proc/inode.c index f130499ad843..f495fdb39151 100644 --- a/fs/proc/inode.c +++ b/fs/proc/inode.c @@ -494,6 +494,9 @@ static int proc_reg_open(struct inode *inode, struct file *file) typeof_member(struct proc_ops, proc_release) release; struct pde_opener *pdeo; + if (!pde->proc_ops->proc_lseek) + file->f_mode &= ~FMODE_LSEEK; + if (pde_is_permanent(pde)) { open = pde->proc_ops->proc_open; if (open)