|
@@ -262,7 +262,7 @@ static ssize_t dlmfs_file_read(struct file *filp,
|
|
if ((count + *ppos) > i_size_read(inode))
|
|
if ((count + *ppos) > i_size_read(inode))
|
|
readlen = i_size_read(inode) - *ppos;
|
|
readlen = i_size_read(inode) - *ppos;
|
|
else
|
|
else
|
|
- readlen = count - *ppos;
|
|
|
|
|
|
+ readlen = count;
|
|
|
|
|
|
lvb_buf = kmalloc(readlen, GFP_NOFS);
|
|
lvb_buf = kmalloc(readlen, GFP_NOFS);
|
|
if (!lvb_buf)
|
|
if (!lvb_buf)
|