CC: [email protected]
CC: [email protected]
TO: Chris Wilson <[email protected]>
CC: Matthew Auld <[email protected]>
CC: "Thomas Hellström" <[email protected]>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   136057256686de39cc3a07c2e39ef6bc43003ff6
commit: cf586021642d8017cde111b7dd1ba86224e9da51 drm/i915/gt: Pipelined page 
migration
date:   5 months ago
:::::: branch date: 28 hours ago
:::::: commit date: 5 months ago
config: x86_64-randconfig-m031-20211117 (attached as .config)
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 <[email protected]>
Reported-by: Dan Carpenter <[email protected]>

smatch warnings:
drivers/gpu/drm/i915/gt/intel_migrate.c:525 intel_migrate_copy() error: 'ce' 
dereferencing possible ERR_PTR()

vim +/ce +525 drivers/gpu/drm/i915/gt/intel_migrate.c

cf586021642d80 Chris Wilson 2021-06-17  490  
cf586021642d80 Chris Wilson 2021-06-17  491  int intel_migrate_copy(struct 
intel_migrate *m,
cf586021642d80 Chris Wilson 2021-06-17  492                    struct 
i915_gem_ww_ctx *ww,
cf586021642d80 Chris Wilson 2021-06-17  493                    struct dma_fence 
*await,
cf586021642d80 Chris Wilson 2021-06-17  494                    struct 
scatterlist *src,
cf586021642d80 Chris Wilson 2021-06-17  495                    enum 
i915_cache_level src_cache_level,
cf586021642d80 Chris Wilson 2021-06-17  496                    bool src_is_lmem,
cf586021642d80 Chris Wilson 2021-06-17  497                    struct 
scatterlist *dst,
cf586021642d80 Chris Wilson 2021-06-17  498                    enum 
i915_cache_level dst_cache_level,
cf586021642d80 Chris Wilson 2021-06-17  499                    bool dst_is_lmem,
cf586021642d80 Chris Wilson 2021-06-17  500                    struct 
i915_request **out)
cf586021642d80 Chris Wilson 2021-06-17  501  {
cf586021642d80 Chris Wilson 2021-06-17  502     struct intel_context *ce;
cf586021642d80 Chris Wilson 2021-06-17  503     int err;
cf586021642d80 Chris Wilson 2021-06-17  504  
cf586021642d80 Chris Wilson 2021-06-17  505     *out = NULL;
cf586021642d80 Chris Wilson 2021-06-17  506     if (!m->context)
cf586021642d80 Chris Wilson 2021-06-17  507             return -ENODEV;
cf586021642d80 Chris Wilson 2021-06-17  508  
cf586021642d80 Chris Wilson 2021-06-17  509     ce = 
intel_migrate_create_context(m);
cf586021642d80 Chris Wilson 2021-06-17  510     if (IS_ERR(ce))
cf586021642d80 Chris Wilson 2021-06-17  511             ce = 
intel_context_get(m->context);
cf586021642d80 Chris Wilson 2021-06-17  512     GEM_BUG_ON(IS_ERR(ce));
cf586021642d80 Chris Wilson 2021-06-17  513  
cf586021642d80 Chris Wilson 2021-06-17  514     err = intel_context_pin_ww(ce, 
ww);
cf586021642d80 Chris Wilson 2021-06-17  515     if (err)
cf586021642d80 Chris Wilson 2021-06-17  516             goto out;
cf586021642d80 Chris Wilson 2021-06-17  517  
cf586021642d80 Chris Wilson 2021-06-17  518     err = 
intel_context_migrate_copy(ce, await,
cf586021642d80 Chris Wilson 2021-06-17  519                                     
 src, src_cache_level, src_is_lmem,
cf586021642d80 Chris Wilson 2021-06-17  520                                     
 dst, dst_cache_level, dst_is_lmem,
cf586021642d80 Chris Wilson 2021-06-17  521                                     
 out);
cf586021642d80 Chris Wilson 2021-06-17  522  
cf586021642d80 Chris Wilson 2021-06-17  523     intel_context_unpin(ce);
cf586021642d80 Chris Wilson 2021-06-17  524  out:
cf586021642d80 Chris Wilson 2021-06-17 @525     intel_context_put(ce);
cf586021642d80 Chris Wilson 2021-06-17  526     return err;
cf586021642d80 Chris Wilson 2021-06-17  527  }
cf586021642d80 Chris Wilson 2021-06-17  528  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/[email protected]

Attachment: .config.gz
Description: application/gzip

_______________________________________________
kbuild mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to