kernel - Attempt to fix illegal xfer buffer in ulpt*
authorMatthew Dillon <dillon@apollo.backplane.com>
Mon, 7 May 2012 18:41:27 +0000 (11:41 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Mon, 7 May 2012 18:41:27 +0000 (11:41 -0700)
commit6e1e4b4f074e68f94f5e54bbcfa85ce416b91511
tree591765aa4eb450ef1bbd7781c39bd480fa7cadda
parenta4d7a8cb555c18e0d9d9b3fdb8828cc354e6ad7a
kernel - Attempt to fix illegal xfer buffer in ulpt*

Use usbd_alloc_buffer() to allocate the dummy input buffer for reading
status from the printer instead of passing a (possibly badly misaligned or
illegally addressed) buffer embedded in the softc.

This appears to fix numerous issues with ulpt on 64-bit systems.
sys/dev/usbmisc/ulpt/ulpt.c