virtio/s390: size of SET_IND payload
authorCornelia Huck <cornelia.huck@de.ibm.com>
Tue, 1 Mar 2016 12:44:53 +0000 (13:44 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 2 Mar 2016 16:08:59 +0000 (18:08 +0200)
commitc235082b50f6dd81436b82fd73ffbdeede4ec2e4
tree192e331d7ffe35adaa63755e58c00dfe727a74bf
parent15e90f526bb4e1f9d9b3ecaa8e20bd608bd4dac7
virtio/s390: size of SET_IND payload

SET_IND takes as a payload the _address_ of the indicators, meaning
that we have one of the rare cases where kmalloc(sizeof(&...)) is
actually correct. Let's clarify that with a comment.

The count for the ccw, however, was only correct because the
indicators are 64 bit. Let's use the correct value.

Reported-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Reviewed-by: Halil Pasic <pasic@linux.vnet.ibm.com>
Reviewed-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/s390/virtio/virtio_ccw.c