RDS: properly use sg_init_table
authorChris Mason <chris.mason@oracle.com>
Tue, 20 Jul 2010 00:02:41 +0000 (17:02 -0700)
committerAndy Grover <andy.grover@oracle.com>
Thu, 9 Sep 2010 01:16:41 +0000 (18:16 -0700)
This is only needed to keep debugging code from bugging.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
net/rds/ib_recv.c

index f25c4837d2f6cd85b14bdb09fa4ba84efc237ea6..a2f5f6faf35c846f13159bf76485944f46752a90 100644 (file)
@@ -282,6 +282,7 @@ static struct rds_page_frag *rds_ib_refill_one_frag(struct rds_ib_connection *ic
                if (!frag)
                        return NULL;
 
+               sg_init_table(&frag->f_sg, 1);
                ret = rds_page_remainder_alloc(&frag->f_sg,
                                               RDS_FRAG_SIZE, page_mask);
                if (ret) {