hc
2024-05-16 8d2a02b24d66aa359e83eebc1ed3c0f85367a1cb
kernel/drivers/gpu/arm/mali400/ump/linux/ump_osk_low_level_mem.c
....@@ -223,7 +223,7 @@
223223
224224 /* Flush L1 using virtual address, the entire range in one go.
225225 * Only flush if user space process has a valid write mapping on given address. */
226
- if ((mem) && (virt != NULL) && (access_ok(VERIFY_WRITE, virt, size))) {
226
+ if ((mem) && (virt != NULL) && (access_ok(virt, size))) {
227227 __cpuc_flush_dcache_area(virt, size);
228228 DBG_MSG(3, ("UMP[%02u] Flushing CPU L1 Cache. CPU address: %x, size: %x\n", mem->secure_id, virt, size));
229229 } else {