summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/scsi/scsi_proc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/scsi/scsi_proc.c b/drivers/scsi/scsi_proc.c
index 1670ba7ad6af..1eb34c34d7b9 100644
--- a/drivers/scsi/scsi_proc.c
+++ b/drivers/scsi/scsi_proc.c
@@ -78,7 +78,8 @@ static int proc_scsi_show(struct seq_file *m, void *v)
static int proc_scsi_host_open(struct inode *inode, struct file *file)
{
- return single_open(file, proc_scsi_show, PDE(inode)->data);
+ return single_open_size(file, proc_scsi_show, PDE(inode)->data,
+ 4 * PAGE_SIZE);
}
static const struct file_operations proc_scsi_fops = {