]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vmwgfx: Return 0 when gmrid::get_node runs out of ID's
authorDeepak Rawat <drawat@vmware.com>
Thu, 28 Feb 2019 18:29:54 +0000 (10:29 -0800)
committerThomas Hellstrom <thellstrom@vmware.com>
Wed, 20 Mar 2019 06:53:29 +0000 (07:53 +0100)
commit743ade2901f17ef8f3979c3e56c39d7ddff82bb9
tree0e49ac8188911a74d095328a834901355f21ef8f
parente72b954bf1b77f1b2e970ebd388bbf20d3c72f2e
drm/vmwgfx: Return 0 when gmrid::get_node runs out of ID's

If it's not a system error and get_node implementation accommodate the
buffer object then it should return 0 with memm::mm_node set to NULL.

v2: Test for id != -ENOMEM instead of id == -ENOSPC.

Cc: <stable@vger.kernel.org>
Fixes: 4baf11135427 ("drm/vmwgfx: Convert to new IDA API")
Signed-off-by: Deepak Rawat <drawat@vmware.com>
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
drivers/gpu/drm/vmwgfx/vmwgfx_gmrid_manager.c