summaryrefslogtreecommitdiff
path: root/include/uapi/linux/ppdev.h
diff options
context:
space:
mode:
authorMitchel Humpherys <mitchelh@codeaurora.org>2015-01-06 17:51:51 -0800
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-22 11:04:21 -0700
commit32241e53e1b00385b33a6ba427c0ce8795fe895f (patch)
treeb1bb14357c7dd2d9d361619500db58da2a9b3335 /include/uapi/linux/ppdev.h
parentcf29b8cc9f71202944dc7937d3ddac998f1144bc (diff)
ion: always initialize the free list parameters
Currently we initialize the heap free_lock and free list size in ion_heap_init_deferred_free, which is only called when the ION_HEAP_FLAG_DEFER_FREE heap flag is given. However, the lock and size are used in the shrinker path as well as the deferred free path, and we can register a shrinker *without* enabling deferred freeing. So, if a heap provides a shrinker but *doesn't* set the DEFER_FREE flag we will use these parameters uninitialized (resulting in a spinlock bug and broken shrinker accounting). Fix these problems by initializing the free list parameters directly in ion_device_add_heap, which is always called no matter which heap features are being used. CRs-Fixed: 772761 Change-Id: Ib6466f940675040812b754690fd132ad95ec91d5 Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
Diffstat (limited to 'include/uapi/linux/ppdev.h')
0 files changed, 0 insertions, 0 deletions