* [chrome-os:chromeos-5.4 31/83] drivers/gpu/drm/i915/display/intel_sprite.c:2273:42: warning: Possible null pointer dereference: obj [nullPointer]
@ 2021-12-11 9:49 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-12-11 9:49 UTC (permalink / raw)
To: kbuild
[-- Attachment #1: Type: text/plain, Size: 2644 bytes --]
CC: kbuild-all(a)lists.01.org
TO: cros-kernel-buildreports(a)googlegroups.com
TO: Guenter Roeck <groeck@google.com>
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.4
head: 7ba45329e79ddb80de9234a8f0bd61b1c897261e
commit: 2b9613b207a96e9b2fa9fb8545dcdc5ed6c4a61a [31/83] FROMGIT: BACKPORT: drm/i915: Move the pxp plane state computation
:::::: branch date: 11 hours ago
:::::: commit date: 8 days ago
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
cppcheck possible warnings: (new ones prefixed by >>, may not real problems)
>> drivers/gpu/drm/i915/display/intel_sprite.c:2273:42: warning: Possible null pointer dereference: obj [nullPointer]
struct drm_i915_private *i915 = to_i915(obj->base.dev);
^
drivers/gpu/drm/i915/display/intel_sprite.c:2330:50: note: Calling function 'bo_has_valid_encryption', 1st argument '(fb)?to_intel_bo(fb->obj[0]):NULL' value is 0
plane_state->decrypt = bo_has_valid_encryption(intel_fb_obj(fb));
^
drivers/gpu/drm/i915/display/intel_sprite.c:2273:42: note: Null pointer dereference
struct drm_i915_private *i915 = to_i915(obj->base.dev);
^
drivers/gpu/drm/i915/display/intel_sprite.c:1492:2: warning: Variable 'i' is modified but its new value is never used. [unreadVariable]
i++;
^
drivers/gpu/drm/i915/display/intel_sprite.c:1521:2: warning: Variable 'i' is modified but its new value is never used. [unreadVariable]
i++;
^
drivers/gpu/drm/i915/display/intel_sprite.c:1831:2: warning: Variable 'i' is modified but its new value is never used. [unreadVariable]
i++;
^
vim +2273 drivers/gpu/drm/i915/display/intel_sprite.c
80816bb6075585 Ville Syrjälä 2019-10-15 2270
2b9613b207a96e Ville Syrjälä 2021-10-07 2271 static bool bo_has_valid_encryption(struct drm_i915_gem_object *obj)
2b9613b207a96e Ville Syrjälä 2021-10-07 2272 {
2b9613b207a96e Ville Syrjälä 2021-10-07 @2273 struct drm_i915_private *i915 = to_i915(obj->base.dev);
2b9613b207a96e Ville Syrjälä 2021-10-07 2274
2b9613b207a96e Ville Syrjälä 2021-10-07 2275 return intel_pxp_key_check(&i915->gt.pxp, obj, false) == 0;
2b9613b207a96e Ville Syrjälä 2021-10-07 2276 }
2b9613b207a96e Ville Syrjälä 2021-10-07 2277
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-12-11 9:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-11 9:49 [chrome-os:chromeos-5.4 31/83] drivers/gpu/drm/i915/display/intel_sprite.c:2273:42: warning: Possible null pointer dereference: obj [nullPointer] kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.