]> git.baikalelectronics.ru Git - kernel.git/commit
drm/etnaviv: fix get pages error path in etnaviv_gem_vaddr
authorLucas Stach <l.stach@pengutronix.de>
Mon, 25 Jan 2016 14:37:28 +0000 (15:37 +0100)
committerLucas Stach <l.stach@pengutronix.de>
Tue, 26 Jan 2016 17:54:00 +0000 (18:54 +0100)
commite7a75d4d20a9e8b7a3ec6872aaa144c199fa692a
tree85cccf618bffa4a1680902ee0b004714d7591f81
parent3bce290376c00f2742f3d79d7e40c1442311a847
drm/etnaviv: fix get pages error path in etnaviv_gem_vaddr

In case that etnaviv_gem_get_pages is unable to get the required
pages the object mutex needs to be unlocked. Also return NULL in
this case instead of propagating the error, as callers of this
function might not be prepared to handle a pointer error, but
expect this call to follow the semantics of a plain vmap to return
NULL in case of an error.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
drivers/gpu/drm/etnaviv/etnaviv_dump.c
drivers/gpu/drm/etnaviv/etnaviv_gem.c