HomeFreeBSD

Misc. fixups:

Description

Misc. fixups:

  • [1] Make the driver friendly towards kernel without PREEMPTION. Use msleep(9) instead of simple unlock-check_variable-lock mechanisme since the later not really effective in non-preemptible kernel (especially during codec detection routine).
  • Free most driver resources in a sane manner to avoid possible double free and panics especially during device detach and codec detection failure.

MFC after: 3 days

[1] http://lists.freebsd.org/pipermail/freebsd-questions/2006-March/116515.html

Details

Provenance
Ariff Abdullah <ariff@FreeBSD.org>Authored on Mar 22 2006, 9:29 PM
Parents
rG6f4640d092ca: MFp4: If we're mapping the vector page (this will happen if we didn't
Branches
Unknown
Tags
Unknown

Event Timeline