kern_memio - fix check for zerodev to fix memory mappings
authorAlex Hornung <ahornung@gmail.com>
Thu, 6 Aug 2009 23:00:05 +0000 (00:00 +0100)
committerAlex Hornung <ahornung@gmail.com>
Thu, 6 Aug 2009 23:09:20 +0000 (00:09 +0100)
commitb9a1f8e1dbe086ed6bd0b75102247c992c85b467
tree797f2e52bf46a8c7ab8c5e8fdfad9434cfd753af
parent42ad87a14e298319b406c2c6a5404dd9388a991f
kern_memio - fix check for zerodev to fix memory mappings

* Change iszerodev() to check against a saaved cdev_t returned by
  the make_dev creating /dev/zero instead of relying on some
  major/minor magic.

* This fixes a problem when running mono, which caused a segfault
  on memset().

Reported-By: Hasso Tepper
Reported-By: Matthew Dillon
sys/kern/kern_memio.c