diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2000-08-28 22:00:09 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2000-08-28 22:00:09 +0000 |
commit | 1a1d77dd589de5a567fa95e36aa6999c704ceca4 (patch) | |
tree | 141e31f89f18b9fe0831f31852e0435ceaccafc5 /drivers/pci/proc.c | |
parent | fb9c690a18b3d66925a65b17441c37fa14d4370b (diff) |
Merge with 2.4.0-test7.
Diffstat (limited to 'drivers/pci/proc.c')
-rw-r--r-- | drivers/pci/proc.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/pci/proc.c b/drivers/pci/proc.c index 703b8c138..2a517f7d6 100644 --- a/drivers/pci/proc.c +++ b/drivers/pci/proc.c @@ -238,6 +238,13 @@ get_pci_dev_info(char *buf, char **start, off_t pos, int count) } else cnt += len; buf += len; + if (cnt >= count) + /* + * proc_file_read() gives us 1KB of slack so it's OK if the + * above printfs write a little beyond the buffer end (we + * never write more than 1KB beyond the buffer end). + */ + break; } } return (count > cnt) ? cnt : count; |