drm: Branch 'master'

[email protected] (Chris Wilson)
Newsgroups gmane.comp.video.dri.patches
Message-ID <[email protected]>
 intel/intel_bufmgr_gem.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit fe4579e263c8da19f790cc5c5430e12d9b1687b5
Author: Chris Wilson <[email protected]>
Date:   Mon Oct 24 21:17:13 2016 +0100

    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 <[email protected]>

diff --git a/intel/intel_bufmgr_gem.c b/intel/intel_bufmgr_gem.c
index 3028da5..1792796 100644
--- a/intel/intel_bufmgr_gem.c
+++ b/intel/intel_bufmgr_gem.c
@@ -2643,7 +2643,7 @@ drm_intel_bo_gem_create_from_prime(drm_intel_bufmgr *bufmgr, int prime_fd, int s
 	 * for named buffers, we must not create two bo's pointing at the same
 	 * kernel object
 	 */
-	HASH_FIND(name_hh, bufmgr_gem->name_table,
+	HASH_FIND(handle_hh, bufmgr_gem->handle_table,
 		  &handle, sizeof(handle), bo_gem);
 	if (bo_gem) {
 		drm_intel_gem_bo_reference(&bo_gem->bo);

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
--
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.