summaryrefslogtreecommitdiffstats
path: root/sys/dev/vinum
diff options
context:
space:
mode:
authorgrog <grog@FreeBSD.org>1999-05-02 07:50:38 +0000
committergrog <grog@FreeBSD.org>1999-05-02 07:50:38 +0000
commitf16abeb3d74446718d487aa2cace66a8b168d839 (patch)
tree9ba326632272fe0756adc9177646a1fd782a2549 /sys/dev/vinum
parent00c882d0273ab22fc128b2c4abe2af9752f37797 (diff)
downloadFreeBSD-src-f16abeb3d74446718d487aa2cace66a8b168d839.zip
FreeBSD-src-f16abeb3d74446718d487aa2cace66a8b168d839.tar.gz
vinum_mallocinfo:
Set the entry number correctly.
Diffstat (limited to 'sys/dev/vinum')
-rw-r--r--sys/dev/vinum/vinummemory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/vinum/vinummemory.c b/sys/dev/vinum/vinummemory.c
index f066310..8cdc040 100644
--- a/sys/dev/vinum/vinummemory.c
+++ b/sys/dev/vinum/vinummemory.c
@@ -232,7 +232,7 @@ int
vinum_mallocinfo(caddr_t data)
{
struct mc *m = (struct mc *) data;
- unsigned int ent = *(int *) data; /* 1st word is index */
+ unsigned int ent = m->seq; /* index of entry to return */
if (ent >= malloccount)
return ENOENT;
OpenPOWER on IntegriCloud