Subject: PR/36660 CVS commit: src/sys
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Juan Romero Pardines <xtraeme@netbsd.org>
List: netbsd-bugs
Date: 07/17/2007 16:50:03
The following reply was made to PR kern/36660; it has been noted by GNATS.
From: Juan Romero Pardines <xtraeme@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: PR/36660 CVS commit: src/sys
Date: Tue, 17 Jul 2007 16:47:58 +0000 (UTC)
Module Name: src
Committed By: xtraeme
Date: Tue Jul 17 16:47:58 UTC 2007
Modified Files:
src/sys/dev/sysmon: sysmon_envsys.c
src/sys/sys: envsys.h
Log Message:
Skip sensors with the same description on the same device at attach time,
if the description of it is not unique, mark the sensor with
ENVSYS_FDUPDESC, return EEXIST and continue.
Also, when changing a description, check that the new description is not
assigned by any other sensor, otherwise return EEXIST.
Note that these restrictions are only per device. Fixes PR kern/36660.
To generate a diff of this commit:
cvs rdiff -r1.22 -r1.23 src/sys/dev/sysmon/sysmon_envsys.c
cvs rdiff -r1.12 -r1.13 src/sys/sys/envsys.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.