staging: unisys: Use size of channel defined in the channel.
authorDavid Kershner <david.kershner@unisys.com>
Wed, 30 Aug 2017 17:36:31 +0000 (13:36 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 31 Aug 2017 16:17:40 +0000 (18:17 +0200)
commitd7f1589a1df39c0aa6234179c032e2ed9af3e0e6
tree02f84e599972228574f4ab3343aa0f782b91071d
parentebef2610b75652a30d0155d5b9108340a7bacc29
staging: unisys: Use size of channel defined in the channel.

The size of the channel should be pulled from the channel header, not
from the message. All channels must be at least the size of the
channel_header.

Signed-off-by: David Kershner <david.kershner@unisys.com>
Reviewed-by: Tim Sell <timothy.sell@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/visorbus/visorbus_private.h
drivers/staging/unisys/visorbus/visorchannel.c
drivers/staging/unisys/visorbus/visorchipset.c