hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/net/ipa/gsi_trans.c
....@@ -159,7 +159,7 @@
159159 * gsi_trans_pool_exit_dma() can assume the total allocated
160160 * size is exactly (count * size).
161161 */
162
- total_size = get_order(total_size) << PAGE_SHIFT;
162
+ total_size = PAGE_SIZE << get_order(total_size);
163163
164164 virt = dma_alloc_coherent(dev, total_size, &addr, GFP_KERNEL);
165165 if (!virt)