greybus: es2: fix cport-count error handling
authorJohan Hovold <johan@hovoldconsulting.com>
Wed, 17 Feb 2016 18:30:40 +0000 (19:30 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Wed, 17 Feb 2016 23:16:42 +0000 (15:16 -0800)
commit478ce7203c2cf3f241f11587717336a60d391269
tree65674bcd0c083ff552aadc19580dd6c019580bf0
parentb59281ac077414d879e66798f8e44eb976967814
greybus: es2: fix cport-count error handling

Make sure to check for short transfers when retrieving the bridge cport
count.

Also clear the request buffer when allocating it.

Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/es2.c