uchcom: Fix panic when accessing a ucom device based on uchcom
commitfbc62c4bd06ca5a1231171d7be11464cac6b42b2
authorJan Lentfer <Jan.Lentfer@web.de>
Mon, 11 Jan 2010 19:20:07 +0000 (11 20:20 +0100)
committerJan Lentfer <Jan.Lentfer@web.de>
Mon, 11 Jan 2010 19:41:12 +0000 (11 20:41 +0100)
tree7b751379480048d9947fcc3f9bf326c48083849a
parentb589b7a68a1fa27c1f0932b98f48c9076b441e55
uchcom: Fix panic when accessing a ucom device based on uchcom

The panic was due to uchcom_param arg being always NULL,
since ucom->sc_parent wasn't initialized properly.
All other usb serial drivers also seem to do it this way.
sys/dev/usbmisc/uchcom/uchcom.c