X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=lib%2Fsg_pool.c;h=a0b1a52cd6f7510cecdf8800a550441d208879f6;hb=2c3ef25c4a60cc18cf3f05a74c78220748f25684;hp=db29e5c1f7909a537203870dc0ab98dbf8672035;hpb=436b2a8039ac00f8dc6ae8f3bd2be83748f72312;p=linux-2.6-microblaze.git diff --git a/lib/sg_pool.c b/lib/sg_pool.c index db29e5c1f790..a0b1a52cd6f7 100644 --- a/lib/sg_pool.c +++ b/lib/sg_pool.c @@ -90,7 +90,8 @@ void sg_free_table_chained(struct sg_table *table, if (nents_first_chunk == 1) nents_first_chunk = 0; - __sg_free_table(table, SG_CHUNK_SIZE, nents_first_chunk, sg_pool_free); + __sg_free_table(table, SG_CHUNK_SIZE, nents_first_chunk, sg_pool_free, + table->orig_nents); } EXPORT_SYMBOL_GPL(sg_free_table_chained);