]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Rearrange how things are done to avoid dereferencing stale pointers in
authorMatt Jacob <mjacob@FreeBSD.org>
Tue, 8 Jun 2010 22:46:44 +0000 (22:46 +0000)
committerMatt Jacob <mjacob@FreeBSD.org>
Tue, 8 Jun 2010 22:46:44 +0000 (22:46 +0000)
commit63ebd216e700d9d698df359b6750874873cc6b14
treedadc61aaae361e7066ba7817b58e4c6760680a6c
parent59ccfe81763b9f6f6d9db881b98607ac2d24a398
Rearrange how things are done to avoid dereferencing stale pointers in
the case of immediate unconfigure after configure. Hold the periph an
extra count while we have the task to create sysctl context outstanding
so that the periph doesn't go away unexpectedly.

Sponsored by: Panasas
Reviewed by: scsi@
MFC after: 1 month
sys/cam/scsi/scsi_da.c