From: Chris Mason Date: Fri, 3 Feb 2012 16:07:18 +0000 (-0500) Subject: RDS: properly init the sg table in our frags X-Git-Tag: v4.1.12-92~319^2^2~2^2~79 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=572aa342613574894bdb73210f648c6e5c6a6737;p=users%2Fjedix%2Flinux-maple.git RDS: properly init the sg table in our frags Signed-off-by: Chris Mason Signed-off-by: Bang Nguyen --- diff --git a/net/rds/ib_recv.c b/net/rds/ib_recv.c index 493163c0fe896..5131796dab576 100644 --- a/net/rds/ib_recv.c +++ b/net/rds/ib_recv.c @@ -281,6 +281,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) {