Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 68037
b: refs/heads/master
c: cd68602
h: refs/heads/master
i:
  68035: 161b5a1
v: v3
  • Loading branch information
David Rientjes authored and Greg Kroah-Hartman committed Oct 12, 2007
1 parent 61c6d72 commit d825d94
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7f785763660e75c9eddaddea3d618696af4ae3a2
refs/heads/master: cd68602f36ceb65b24a9abcae10ca04a933c07fd
4 changes: 2 additions & 2 deletions trunk/drivers/pci/proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ proc_bus_pci_read(struct file *file, char __user *buf, size_t nbytes, loff_t *pp
*/

if (capable(CAP_SYS_ADMIN))
size = dev->cfg_size;
size = dp->size;
else if (dev->hdr_type == PCI_HEADER_TYPE_CARDBUS)
size = 128;
else
Expand Down Expand Up @@ -133,7 +133,7 @@ proc_bus_pci_write(struct file *file, const char __user *buf, size_t nbytes, lof
const struct proc_dir_entry *dp = PDE(ino);
struct pci_dev *dev = dp->data;
int pos = *ppos;
int size = dev->cfg_size;
int size = dp->size;
int cnt;

if (pos >= size)
Expand Down

0 comments on commit d825d94

Please sign in to comment.