Loading drivers/staging/android/ion/ion_system_heap.c +5 −1 Original line number Diff line number Diff line Loading @@ -2,7 +2,7 @@ * drivers/staging/android/ion/ion_system_heap.c * * Copyright (C) 2011 Google, Inc. * Copyright (c) 2011-2018, The Linux Foundation. All rights reserved. * Copyright (c) 2011-2019, The Linux Foundation. All rights reserved. * * This software is licensed under the terms of the GNU General Public * License version 2, as published by the Free Software Foundation, and Loading Loading @@ -275,6 +275,9 @@ static struct page_info *alloc_from_pool_preferred( struct page_info *info; int i; if (buffer->flags & ION_FLAG_POOL_FORCE_ALLOC) goto force_alloc; info = kmalloc(sizeof(*info), GFP_KERNEL); if (!info) return NULL; Loading Loading @@ -306,6 +309,7 @@ static struct page_info *alloc_from_pool_preferred( } kfree(info); force_alloc: return alloc_largest_available(heap, buffer, size, max_order); } Loading Loading
drivers/staging/android/ion/ion_system_heap.c +5 −1 Original line number Diff line number Diff line Loading @@ -2,7 +2,7 @@ * drivers/staging/android/ion/ion_system_heap.c * * Copyright (C) 2011 Google, Inc. * Copyright (c) 2011-2018, The Linux Foundation. All rights reserved. * Copyright (c) 2011-2019, The Linux Foundation. All rights reserved. * * This software is licensed under the terms of the GNU General Public * License version 2, as published by the Free Software Foundation, and Loading Loading @@ -275,6 +275,9 @@ static struct page_info *alloc_from_pool_preferred( struct page_info *info; int i; if (buffer->flags & ION_FLAG_POOL_FORCE_ALLOC) goto force_alloc; info = kmalloc(sizeof(*info), GFP_KERNEL); if (!info) return NULL; Loading Loading @@ -306,6 +309,7 @@ static struct page_info *alloc_from_pool_preferred( } kfree(info); force_alloc: return alloc_largest_available(heap, buffer, size, max_order); } Loading