]> git.baikalelectronics.ru Git - kernel.git/commit
staging: unisys: fix IO memory copy in channel.h
authorBenjamin Romer <benjamin.romer@unisys.com>
Mon, 22 Sep 2014 17:45:03 +0000 (13:45 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 23 Sep 2014 20:35:03 +0000 (13:35 -0700)
commit19369d1a92a4f6ec007856a31904237f763d865e
treebbb3533a8af6afbb34c35a60aefed32d9a039768
parent85e127b98648fbeb9ccd64a25aae98fbdd36c2d3
staging: unisys: fix IO memory copy in channel.h

The function ULTRA_check_channel_client() was recently patched to use
ioread8_rep(). Unfortunately the parameters were incorrectly ordered, and this
causes the function to fail and the guest to not boot.

This patch switches the parameters around and uses memcpy_fromio() instead,
which is clearer since a structure is being copied, not an array, and it
fixes the error message printout later in the function that was using the UUID
value in the channel, rather than the value copied from the channel, which
causes a misleading error to be reported.

Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/common-spar/include/channels/channel.h