From: hyesoo.yu Date: Fri, 1 Jun 2018 02:29:15 +0000 (+0900) Subject: [COMMON] ion: send aligned size to secure OS X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d5d8a968091d86d8a678305eb96a4ab844219ed1;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [COMMON] ion: send aligned size to secure OS Change-Id: I172f426a3289b3d8f26853e43fcd219d12e994c6 Signed-off-by: hyesoo.yu --- diff --git a/drivers/staging/android/ion/ion_buffer_protect.c b/drivers/staging/android/ion/ion_buffer_protect.c index 375da55c9694..22c0d46ab301 100644 --- a/drivers/staging/android/ion/ion_buffer_protect.c +++ b/drivers/staging/android/ion/ion_buffer_protect.c @@ -198,7 +198,7 @@ void *ion_buffer_protect_single(unsigned int protection_id, unsigned int size, protdesc->chunk_count = 1, protdesc->flags = protection_id; - protdesc->chunk_size = size; + protdesc->chunk_size = ALIGN(size, protalign); protdesc->bus_address = phys; ret = ion_secure_protect(protdesc, protalign);