]> git.baikalelectronics.ru Git - kernel.git/commit
drm/etnaviv: Fix a leak in submit_pin_objects()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 18 May 2020 11:29:55 +0000 (14:29 +0300)
committerLucas Stach <l.stach@pengutronix.de>
Tue, 19 May 2020 09:18:59 +0000 (11:18 +0200)
commit04c457e9a589da83070227de31ac376696c5a203
tree828e72ce6d9ac2f5fad4ca0190c0eba6f93be0c0
parent292f972563159e415fcdfba477f727303b7b0497
drm/etnaviv: Fix a leak in submit_pin_objects()

If the mapping address is wrong then we have to release the reference to
it before returning -EINVAL.

Fixes: 45cc56bf1d7c ("drm/etnaviv: implement softpin")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c