mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
Fix stupid typo-mistake, which lead to allocating only 4 bytes intead of sizeof(struct pci_pool).
svn path=/trunk/; revision=16726
This commit is contained in:
parent
38cd13eb67
commit
663bb3a53e
1 changed files with 2 additions and 2 deletions
|
@ -608,8 +608,8 @@ struct pci_pool *my_pci_pool_create(const char * name, struct pci_dev * pdev, si
|
||||||
} else if (allocation < size)
|
} else if (allocation < size)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
retval = ExAllocatePool(NonPagedPool, sizeof(retval)); //FIXME: Should it be non-paged?
|
retval = ExAllocatePool(NonPagedPool, sizeof(struct pci_pool)); // Non-paged because could be
|
||||||
// pci_pool is rather big struct
|
// pci_pool is rather big struct
|
||||||
|
|
||||||
// fill retval structure
|
// fill retval structure
|
||||||
strncpy (retval->name, name, sizeof retval->name);
|
strncpy (retval->name, name, sizeof retval->name);
|
||||||
|
|
Loading…
Reference in a new issue