|
@@ -203,10 +203,10 @@ void __sg_free_table(struct sg_table *table, unsigned int max_ents,
|
|
}
|
|
}
|
|
|
|
|
|
table->orig_nents -= sg_size;
|
|
table->orig_nents -= sg_size;
|
|
- if (!skip_first_chunk) {
|
|
|
|
- free_fn(sgl, alloc_size);
|
|
|
|
|
|
+ if (skip_first_chunk)
|
|
skip_first_chunk = false;
|
|
skip_first_chunk = false;
|
|
- }
|
|
|
|
|
|
+ else
|
|
|
|
+ free_fn(sgl, alloc_size);
|
|
sgl = next;
|
|
sgl = next;
|
|
}
|
|
}
|
|
|
|
|