DEVFS - Use dyn. memory for alias and clone handler
authorAlex Hornung <ahornung@gmail.com>
Thu, 6 Aug 2009 07:46:47 +0000 (08:46 +0100)
committerAlex Hornung <ahornung@gmail.com>
Thu, 6 Aug 2009 08:20:05 +0000 (09:20 +0100)
commit5298e788f4d1604b0b1d62d8fdc2b81f489154e7
treece6858487f20dd2ee87414e86101f5b7d99c0ab0
parent8cde3c7982703686f0a5996f9f9b98f1a0d934b3
DEVFS - Use dyn. memory for alias and clone handler

Change the ->name element for both alias and clone handler structs
to use dynamic memory, allocated just after allocation of the
structs.
Also fix a problem in devfs_make_alias_worker() which would have
caused a warning and non-creation of alias in case one requested
creation of da0 after da0s1a because of a missing length check.

Reported-By: Matthew Dillon
sys/vfs/devfs/devfs.h
sys/vfs/devfs/devfs_core.c