Subject: CVS commit: src/sys/dev/sysmon
To: None <>
From: Juan Romero Pardines <>
List: source-changes
Date: 11/10/2007 09:32:24
Module Name:	src
Committed By:	xtraeme
Date:		Sat Nov 10 09:32:24 UTC 2007

Modified Files:
	src/sys/dev/sysmon: sysmon_power.c

Log Message:
Add another flag that is set only when the event was enqueued
(and its dictionary created) successfully and use it in the
POWER_EVENT_RECVDICT ioctl to check if the dictionary is ready before
calling prop_dictionary_copyout_ioctl().

This fixes a rare condition when too many events are enqueued and
there wasn't time to create the dictionary, so prop_dictionary_copyout_ioctl()
fails with a NULL pointer dereference.

To generate a diff of this commit:
cvs rdiff -r1.29 -r1.30 src/sys/dev/sysmon/sysmon_power.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.