PERFORCE change 125323 for review

Constantine A. Murenin cnst at FreeBSD.org
Sat Aug 18 13:27:49 PDT 2007


http://perforce.freebsd.org/chv.cgi?CH=125323

Change 125323 by cnst at dale on 2007/08/18 20:27:10

	declaring sc_dev as a member of softc and leaving it completely
	uninitialised is dangerous; in fact, it caused me a few page-traps
	and reboots when I was converting it to my framework

Affected files ...

.. //depot/projects/soc2007/cnst-sensors/sys.dev.coretemp/coretemp.c#2 edit

Differences ...

==== //depot/projects/soc2007/cnst-sensors/sys.dev.coretemp/coretemp.c#2 (text+ko) ====

@@ -136,6 +136,8 @@
 	int cpu_model;
 	int cpu_mask;
 
+	sc->sc_dev = dev;
+
 	pdev = device_get_parent(dev);
 
 	cpu_model  = (cpu_id >> 4) & 15;


More information about the p4-projects mailing list