uchcom: Fix panic when accessing a ucom device based on uchcom
authorJan Lentfer <Jan.Lentfer@web.de>
Mon, 11 Jan 2010 19:20:07 +0000 (20:20 +0100)
committerJan Lentfer <Jan.Lentfer@web.de>
Mon, 11 Jan 2010 19:20:07 +0000 (20:20 +0100)
commit95a382e168011c3b52fe297c70637a5cd9bd90ca
tree88f6b31cdd33d4603d9a8ab801c602f3dc020be6
parent2183cbe4203baa9866bde803a95210404d75b6ac
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