summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-08-06 21:02:30 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-08-06 21:02:30 +0000
commitb8fa0b12666870682a993e790cb7855554e0773d (patch)
tree84075f40bd8506354679281c43dc1255ac6e30d6
parent2008-08-05 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-b8fa0b12666870682a993e790cb7855554e0773d.tar.bz2
2008-08-06 Brett Swimley <brett.swimley@aedbozeman.com>
PR 1192/filesystem * libblock/src/diskdevs.c: Update the disktap pointer after the realloc.
-rw-r--r--cpukit/ChangeLog6
-rw-r--r--cpukit/libblock/src/diskdevs.c1
2 files changed, 7 insertions, 0 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog
index 6b2edeee91..754e2e8bf5 100644
--- a/cpukit/ChangeLog
+++ b/cpukit/ChangeLog
@@ -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>
PR 741/networking
diff --git a/cpukit/libblock/src/diskdevs.c b/cpukit/libblock/src/diskdevs.c
index 25b8287610..cf18e82537 100644
--- a/cpukit/libblock/src/diskdevs.c
+++ b/cpukit/libblock/src/diskdevs.c
@@ -84,6 +84,7 @@ create_disk_entry(dev_t dev)
p = realloc(disktab, sizeof(struct disk_device_table) * newsize);
if (p == NULL)
return NULL;
+ disktab = p;
p += disktab_size;
for (i = disktab_size; i < newsize; i++, p++)
{