[PATCH] struct path: convert atm
Signed-off-by: Josef Sipek <jsipek@fsl.cs.sunysb.edu> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
8ac0352bb2
commit
76a0f17429
1 changed files with 1 additions and 1 deletions
|
@ -393,7 +393,7 @@ static ssize_t proc_dev_atm_read(struct file *file, char __user *buf,
|
||||||
if (count == 0) return 0;
|
if (count == 0) return 0;
|
||||||
page = get_zeroed_page(GFP_KERNEL);
|
page = get_zeroed_page(GFP_KERNEL);
|
||||||
if (!page) return -ENOMEM;
|
if (!page) return -ENOMEM;
|
||||||
dev = PDE(file->f_dentry->d_inode)->data;
|
dev = PDE(file->f_path.dentry->d_inode)->data;
|
||||||
if (!dev->ops->proc_read)
|
if (!dev->ops->proc_read)
|
||||||
length = -EINVAL;
|
length = -EINVAL;
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Add table
Reference in a new issue