X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=fs%2Fproc%2Finode.c;h=0e4d37c93eea70208a82a5861735817209082fd7;hb=821f3eff7cdb9d6c7076effabd46c96c322daed1;hp=a5b0dfd89a17043b262261b55a55a3a0f284f286;hpb=195be1c2086929efe1ca315e23f031f06e086369;p=linux-2.6 diff --git a/fs/proc/inode.c b/fs/proc/inode.c index a5b0dfd89a..0e4d37c93e 100644 --- a/fs/proc/inode.c +++ b/fs/proc/inode.c @@ -11,6 +11,7 @@ #include #include #include +#include #include #include #include @@ -232,7 +233,7 @@ static ssize_t proc_reg_write(struct file *file, const char __user *buf, size_t static unsigned int proc_reg_poll(struct file *file, struct poll_table_struct *pts) { struct proc_dir_entry *pde = PDE(file->f_path.dentry->d_inode); - unsigned int rv = 0; + unsigned int rv = DEFAULT_POLLMASK; unsigned int (*poll)(struct file *, struct poll_table_struct *); spin_lock(&pde->pde_unload_lock);