mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-03 00:54:09 +08:00
drm/etnaviv: hold object lock while getting pages for coredump
While all objects that get coredumped have an active IOVA and thus pages already populated, etnaviv_gem_get_pages() still requires the object lock to be held. Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
This commit is contained in:
parent
23a9d5dcb6
commit
339073ef77
@ -201,7 +201,9 @@ void etnaviv_core_dump(struct etnaviv_gpu *gpu)
|
||||
|
||||
obj = vram->object;
|
||||
|
||||
mutex_lock(&obj->lock);
|
||||
pages = etnaviv_gem_get_pages(obj);
|
||||
mutex_unlock(&obj->lock);
|
||||
if (pages) {
|
||||
int j;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user