Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/sys/dev/pci



Module Name:    src
Committed By:   christos
Date:           Sun Sep 21 17:11:07 UTC 2014

Modified Files:
        src/sys/dev/pci: twa.c

Log Message:
fix memset size inconsistency


This fix is wrong.

-	memset(p, sizeof(struct twa_param_9k *), 10);
+	memset(p, 0, sizeof(*p));

p is a [10] array, your memset only initializes the first pointer.

Seriously, guy, ...


Home | Main Index | Thread Index | Old Index