staging: usbip: cleanup and fix of vhci_hub_status
authorBart Westgeest <bart@elbrys.com>
Wed, 13 Jun 2012 19:37:18 +0000 (15:37 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 14 Jun 2012 00:22:57 +0000 (17:22 -0700)
commit7489301a1590c2771d27a08d41fa2778791cdf9d
tree4e6dd590ced3b835a7e0ffa7e05a5549acb1979f
parentb4b700c5a61c6e6db976f60d4eb6ad369e838aa9
staging: usbip: cleanup and fix of vhci_hub_status

Changed setting the status bits to a byte-oriented approach. Number of
written status bits is now based on VHCI_NPORT, instead of casting
status buffer to a long. This fixes a stack corruption bug on 64-bit
based architectures, and potential byte order / endianness related
issues.

In addition updated function comments, and log statements.

Signed-off-by: Bart Westgeest <bart@elbrys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/usbip/vhci_hcd.c