]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gvt: IS_ERR() vs NULL bug in intel_gvt_update_reg_whitelist()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 8 Jul 2022 08:41:06 +0000 (11:41 +0300)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Mon, 11 Jul 2022 05:05:05 +0000 (13:05 +0800)
commit27b1b4b82ba6358c3e9d7344ca5f234240d96962
tree702bb611de2b14daeb7bccbfcd64a521d756b2ff
parent3ea1cbf26fb5982012521c8c4a7c2a63f930087b
drm/i915/gvt: IS_ERR() vs NULL bug in intel_gvt_update_reg_whitelist()

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

Fixes: 43be491837d3 ("drm/i915/gvt: Parse default state to update reg whitelist")
Reviewed-by: Andrzej Hajda <andrzej.hajda@intel.com>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/Ysftoia2BPUyqVcD@kili
Acked-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/cmd_parser.c