drm/i915: Fix a NULL vs IS_ERR() bug
authorDan Carpenter <dan.carpenter@linaro.org>
Tue, 6 Jun 2023 08:23:56 +0000 (11:23 +0300)
committerNirmoy Das <nirmoy.das@intel.com>
Mon, 19 Jun 2023 12:13:57 +0000 (14:13 +0200)
commit3a89311387cde27da8e290458b2d037133c1f7b5
tree0fca002d5a82d23b856d7bbe9d74d8e33eca8613
parent8084c63743a88472af0a34ba209eebf9caea1dae
drm/i915: Fix a NULL vs IS_ERR() bug

The mmap_offset_attach() function returns error pointers, it doesn't
return NULL.

Fixes: eaee1c085863 ("drm/i915: Add a function to mmap framebuffer obj")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Nirmoy Das <nirmoy.das@intel.com>
Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com>
Signed-off-by: Nirmoy Das <nirmoy.das@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/ZH7tHLRZ9oBjedjN@moroto
drivers/gpu/drm/i915/gem/i915_gem_mman.c