summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorYi Yang <yiyang13@huawei.com>2024-11-08 08:55:26 +0000
committerIra Weiny <ira.weiny@intel.com>2024-11-13 12:58:37 -0600
commitb61352101470f8b68c98af674e187cfaa7c43504 (patch)
treeadee0aaf6588cdb899e25cf35681dbcba81261ae /tools/perf/scripts/python/exported-sql-viewer.py
parentf7f50742a6bb5f70b0e41cf9ed6255c7fded69b5 (diff)
downloadlinux-stable-b61352101470f8b68c98af674e187cfaa7c43504.tar.gz
linux-stable-b61352101470f8b68c98af674e187cfaa7c43504.tar.bz2
linux-stable-b61352101470f8b68c98af674e187cfaa7c43504.zip
nvdimm: rectify the illogical code within nd_dax_probe()
When nd_dax is NULL, nd_pfn is consequently NULL as well. Nevertheless, it is inadvisable to perform pointer arithmetic or address-taking on a NULL pointer. Introduce the nd_dax_devinit() function to enhance the code's logic and improve its readability. Signed-off-by: Yi Yang <yiyang13@huawei.com> Reviewed-by: Dave Jiang <dave.jiang@intel.com> Link: https://patch.msgid.link/20241108085526.527957-1-yiyang13@huawei.com Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions