From d5d8a968091d86d8a678305eb96a4ab844219ed1 Mon Sep 17 00:00:00 2001 From: "hyesoo.yu" Date: Fri, 1 Jun 2018 11:29:15 +0900 Subject: [PATCH] [COMMON] ion: send aligned size to secure OS Change-Id: I172f426a3289b3d8f26853e43fcd219d12e994c6 Signed-off-by: hyesoo.yu --- drivers/staging/android/ion/ion_buffer_protect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.20.1