summaryrefslogtreecommitdiff
path: root/tools/perf/scripts
diff options
context:
space:
mode:
authorBart Van Assche <bvanassche@acm.org>2021-12-04 02:19:39 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2021-12-07 06:30:33 +0300
commit21ad0e49085deb22c094f91f9da57319a97188e4 (patch)
tree29743ea1c2c88e816f0df6dfc60c17f6dd4f5c41 /tools/perf/scripts
parentd77ea8226b3be23b0b45aa42851243b62a27bda1 (diff)
downloadlinux-21ad0e49085deb22c094f91f9da57319a97188e4.tar.xz
scsi: ufs: Fix race conditions related to driver data
The driver data pointer must be set before any callbacks are registered that use that pointer. Hence move the initialization of that pointer from after the ufshcd_init() call to inside ufshcd_init(). Link: https://lore.kernel.org/r/20211203231950.193369-7-bvanassche@acm.org Fixes: 3b1d05807a9a ("[SCSI] ufs: Segregate PCI Specific Code") Reported-by: Alexey Dobriyan <adobriyan@gmail.com> Tested-by: Bean Huo <beanhuo@micron.com> Reviewed-by: Bean Huo <beanhuo@micron.com> Signed-off-by: Bart Van Assche <bvanassche@acm.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'tools/perf/scripts')
0 files changed, 0 insertions, 0 deletions