[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [linux-2.6.18-xen] blkfront: Fix the build by expanding sg_init_table() in place.
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1236343893 0 # Node ID 0430b1dbfb3af5f374921b903c96b9b3234cd77c # Parent 63be3e5e2f1a132ce062c446a7d742e3523cf16b blkfront: Fix the build by expanding sg_init_table() in place. Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx> --- drivers/xen/blkfront/blkfront.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -r 63be3e5e2f1a -r 0430b1dbfb3a drivers/xen/blkfront/blkfront.c --- a/drivers/xen/blkfront/blkfront.c Thu Mar 05 14:42:00 2009 +0000 +++ b/drivers/xen/blkfront/blkfront.c Fri Mar 06 12:51:33 2009 +0000 @@ -233,7 +233,7 @@ static int setup_blkring(struct xenbus_d SHARED_RING_INIT(sring); FRONT_RING_INIT(&info->ring, sring, PAGE_SIZE); - sg_init_table(info->sg, BLKIF_MAX_SEGMENTS_PER_REQUEST); + memset(info->sg, 0, sizeof(info->sg)); err = xenbus_grant_ring(dev, virt_to_mfn(info->ring.sring)); if (err < 0) { _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |