9p: virtio: make sure 'offs' is initialized in zc_request
[linux-2.6-microblaze.git] / net / 9p / trans_virtio.c
index 2c9495c..f3f6782 100644 (file)
@@ -428,7 +428,7 @@ p9_virtio_zc_request(struct p9_client *client, struct p9_req_t *req,
        struct page **in_pages = NULL, **out_pages = NULL;
        struct virtio_chan *chan = client->trans;
        struct scatterlist *sgs[4];
-       size_t offs;
+       size_t offs = 0;
        int need_drop = 0;
        int kicked = 0;