aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/tasks.py
diff options
context:
space:
mode:
authorDave Jiang <dave.jiang@intel.com>2023-12-14 12:13:58 -0700
committerDan Williams <dan.j.williams@intel.com>2023-12-18 15:35:00 -0800
commitace196de694ebea5e2b3161e21ad169eb45accc6 (patch)
tree2db2b92340b09354330cc14de0706adf01dac785 /scripts/gdb/linux/tasks.py
parentcb46fca88d14939da2785567253d0a297f31be27 (diff)
downloadlinux-ace196de694ebea5e2b3161e21ad169eb45accc6.tar.gz
linux-ace196de694ebea5e2b3161e21ad169eb45accc6.tar.bz2
linux-ace196de694ebea5e2b3161e21ad169eb45accc6.zip
cxl: Fix unregister_region() callback parameter assignment
In devm_cxl_add_region(), devm_add_action_or_reset() is called by passing in unregister_region() with data ptr of 'cxlr'. However, in unregister_region(), the passed in parameter is incorrectly assumed to be a 'struct device' rather than the 'cxlr' pointer. The code has been working because 'struct device' is the first member of 'struct cxl_region'. Issue found by inspection. Fix the assignment so that cxlr is pointing directly to the passed in parameter. Not flagged for -stable since there is no functional impact of this fix. Signed-off-by: Dave Jiang <dave.jiang@intel.com> Reviewed-by: Ira Weiny <ira.weiny@intel.com> Link: https://lore.kernel.org/r/170258123810.952211.3907381447996426480.stgit@djiang5-mobl3 Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'scripts/gdb/linux/tasks.py')
0 files changed, 0 insertions, 0 deletions