forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-11 04dd17822334871b23ea2862f7798fb0e0007777
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)