OSDN Git Service

intel: Look prime handle up in handle hash table
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 24 Oct 2016 20:17:13 +0000 (21:17 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 24 Oct 2016 20:19:52 +0000 (21:19 +0100)
commitfe4579e263c8da19f790cc5c5430e12d9b1687b5
treee7a9280a96521eb842840391a1592eeed46907dc
parentec39fe07e7a0c05fb2d235440e18b7b52e25330a
intel: Look prime handle up in handle hash table

A slightly confused copy'n'paste from the open path where we pass in
handle but use it as a global name, in the prime handle-from-fd pass we
pass in handle and do mean handle!

References: https://bugs.freedesktop.org/show_bug.cgi?id=98416
Fixes: 2f23bf1b7b89 ("intel: Migrate handle/name lookups from linear lists...")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
intel/intel_bufmgr_gem.c