Bug 128095 - Sizeof(pointer) bug .
Summary: Sizeof(pointer) bug .
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: arm (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-arm (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-14 17:00 UTC by henning.petersen
Modified: 2008-11-10 17:02 UTC (History)
0 users

See Also:


Attachments
file.diff (495 bytes, patch)
2008-10-14 17:00 UTC, henning.petersen
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description henning.petersen 2008-10-14 17:00:05 UTC

Fix: --- src/sys/arm/xscale/ixp425/if_npe.c	22 Mar 2008 16:53:28 -0000	1.9
+++ src/sys/arm/xscale/ixp425/if_npe.c	14 Oct 2008 06:50:58 -0000
@@ -448,7 +448,7 @@
 {
 	int error, i;
 
-	memset(dma, 0, sizeof(dma));
+	memset(dma, 0, sizeof(*dma));
 
 	dma->name = name;
 	dma->nbuf = nbuf;


Patch attached with submission follows:
Comment 1 Gavin Atkinson freebsd_committer freebsd_triage 2008-10-16 15:09:54 UTC
State Changed
From-To: open->patched

Patched in r183886.
Comment 2 Sam Leffler freebsd_committer freebsd_triage 2008-11-10 17:02:01 UTC
State Changed
From-To: patched->closed

fix was committed