Skip to content

Commit 6f4fc18

Browse files
committed
Merge branch 'vmwgfx-fixes-5.9' of git://people.freedesktop.org/~sroland/linux into drm-fixes
One vmwgfx regression fix. Signed-off-by: Dave Airlie <airlied@redhat.com> From: "Roland Scheidegger (VMware)" <rscheidegger.oss@gmail.com> Link: https://patchwork.freedesktop.org/patch/msgid/20200930041000.2423-1-rscheidegger.oss@gmail.com
2 parents a1b8638 + f54c444 commit 6f4fc18

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/gpu/drm/vmwgfx/vmwgfx_gmrid_manager.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ static int vmw_gmrid_man_get_node(struct ttm_mem_type_manager *man,
5555

5656
id = ida_alloc_max(&gman->gmr_ida, gman->max_gmr_ids - 1, GFP_KERNEL);
5757
if (id < 0)
58-
return (id != -ENOMEM ? 0 : id);
58+
return id;
5959

6060
spin_lock(&gman->lock);
6161

drivers/gpu/drm/vmwgfx/vmwgfx_thp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ static int vmw_thp_get_node(struct ttm_mem_type_manager *man,
9595
mem->start = node->start;
9696
}
9797

98-
return 0;
98+
return ret;
9999
}
100100

101101

0 commit comments

Comments
 (0)