forked from Imagelibrary/rtems
2008-08-06 Brett Swimley <brett.swimley@aedbozeman.com>
PR 1192/filesystem * libblock/src/diskdevs.c: Update the disktap pointer after the realloc.
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
2008-08-06 Brett Swimley <brett.swimley@aedbozeman.com>
|
||||||
|
|
||||||
|
PR 1192/filesystem
|
||||||
|
* libblock/src/diskdevs.c: Update the disktap pointer after the
|
||||||
|
realloc.
|
||||||
|
|
||||||
2008-08-05 Joel Sherrill <joel.sherrill@OARcorp.com>
|
2008-08-05 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||||
|
|
||||||
PR 741/networking
|
PR 741/networking
|
||||||
|
|||||||
@@ -84,6 +84,7 @@ create_disk_entry(dev_t dev)
|
|||||||
p = realloc(disktab, sizeof(struct disk_device_table) * newsize);
|
p = realloc(disktab, sizeof(struct disk_device_table) * newsize);
|
||||||
if (p == NULL)
|
if (p == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
disktab = p;
|
||||||
p += disktab_size;
|
p += disktab_size;
|
||||||
for (i = disktab_size; i < newsize; i++, p++)
|
for (i = disktab_size; i < newsize; i++, p++)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user