Re: Removing an SDHC card causes a kernel panic on -current

From: Kenneth D. Merry <ken_at_freebsd.org>
Date: Tue, 26 Jun 2012 20:29:09 -0600
On Tue, Jun 26, 2012 at 19:41:07 -0400, Benjamin Kaduk wrote:
> On Tue, 26 Jun 2012, Michael Butler wrote:
> 
> >As follows, in "g_disk_providergone", a NULL pointer reference?:
> 
> g_disk_providergone() is new in r237518 (by ken); ken cc'd.

Can you try the attached patch to sys/geom/geom_disk.c?

Also, do you have full dmesg information for when the panic happened?

It looks like disk_destroy() has already been called in this case, and I
suppose that's likely to happen for any of the users of the GEOM disk class
that haven't been updated with the reference count changes I made in da(4).
(i.e. all of the rest of them.)

Let me know whether this works for you.

Thanks,

Ken
-- 
Kenneth Merry
ken_at_FreeBSD.ORG

Received on Wed Jun 27 2012 - 00:29:16 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:28 UTC