summaryrefslogtreecommitdiffstats
path: root/drivers/dma/xilinx
diff options
context:
space:
mode:
authorCan Guo <cang@codeaurora.org>2020-10-22 07:59:00 +0200
committerMartin K. Petersen <martin.petersen@oracle.com>2020-11-19 04:53:56 +0100
commit1699f980d87fb678a669490462cf0b9517c1fb47 (patch)
tree8c3a22eee400dc62cddc0a0653e19652cc01293a /drivers/dma/xilinx
parentscsi: target: iscsi: Fix cmd abort fabric stop race (diff)
downloadlinux-1699f980d87fb678a669490462cf0b9517c1fb47.tar.xz
linux-1699f980d87fb678a669490462cf0b9517c1fb47.zip
scsi: ufs: Fix unexpected values from ufshcd_read_desc_param()
WB-related sysfs entries can be accessed even when an UFS device does not support the feature. The descriptors which are not supported by the UFS device may be wrongly reported when they are accessed from their corrsponding sysfs entries. Fix it by adding a sanity check of parameter offset against the actual decriptor length. Link: https://lore.kernel.org/r/1603346348-14149-1-git-send-email-cang@codeaurora.org Reviewed-by: Asutosh Das <asutoshd@codeaurora.org> Acked-by: Daejun Park <daejun7.park@samsung.com> Signed-off-by: Can Guo <cang@codeaurora.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/dma/xilinx')
0 files changed, 0 insertions, 0 deletions