Hi all,

I'm working on a device driver for FreeBSD for a VoIP telephony card and
I stumbled upon a serious problem. If I "kldunload" my driver and
subsequently try to open the device, the kernel panics. I found that the
vn device suffers from this same bug. For example:

Before kldload vn:

[root@dbm]# echo -n>/dev/vn0
su: /dev/vn0: Device not configured
[root@dbm]#

This of course is the expected behavior. We then can do this...

[root@dbm]# kldload vn
[root@dbm]# echo -n>/dev/vn0
[root@dbm]# 

Again, expected behavior...

But if we then do this...

[root@dbm]# kldunload vn
[root@dbm]# echo -n>/dev/vn0

we get an instant panic.

It seems that there is already a pr open for this (kern/18270) which
includes a patch to correctly cleanup after "kldunload". Is this the
correct fix for this...why hasn't this been committed??
--
Regards, Devin.


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to