]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
virtio_config: fix len calculation of config elements
authorChristian Borntraeger <borntraeger@de.ibm.com>
Thu, 29 May 2008 09:08:01 +0000 (11:08 +0200)
committerRusty Russell <rusty@rustcorp.com.au>
Fri, 30 May 2008 05:09:45 +0000 (15:09 +1000)
commit7f31fe05000af54e1af81f65a96cab90db8d7ed8
tree41de5ae1cad5bc30f18bc3334104d059f5c83fc3
parent52a3a05f3ab82655ffa4c9bf6835565c98a3c2e5
virtio_config: fix len calculation of config elements

Rusty,

This patch is a prereq for the virtio_blk blocksize patch, please apply it
first.

Adding an u32 value to the virtio_blk_config unconvered a small bug the config
space defintions:
v is a pointer, to we have to use sizeof(*v) instead of sizeof(v).

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
include/linux/virtio_config.h