summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-cadence.c
diff options
context:
space:
mode:
authorMike Christie <michael.christie@oracle.com>2021-06-30 19:25:59 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-07-28 13:30:56 +0200
commita6cb717f853455f4f0ae4fe2583707b9864a7821 (patch)
tree58cd3ae8344b3c7e4f4b4fe03f79b8ab6f588abf /drivers/spi/spi-cadence.c
parent25df44e90ff5959b5c24ad361b648504a7e39ef3 (diff)
downloadlinux-stable-a6cb717f853455f4f0ae4fe2583707b9864a7821.tar.gz
linux-stable-a6cb717f853455f4f0ae4fe2583707b9864a7821.tar.bz2
linux-stable-a6cb717f853455f4f0ae4fe2583707b9864a7821.zip
scsi: iscsi: Fix iface sysfs attr detection
[ Upstream commit e746f3451ec7f91dcc9fd67a631239c715850a34 ] A ISCSI_IFACE_PARAM can have the same value as a ISCSI_NET_PARAM so when iscsi_iface_attr_is_visible tries to figure out the type by just checking the value, we can collide and return the wrong type. When we call into the driver we might not match and return that we don't want attr visible in sysfs. The patch fixes this by setting the type when we figure out what the param is. Link: https://lore.kernel.org/r/20210701002559.89533-1-michael.christie@oracle.com Fixes: 3e0f65b34cc9 ("[SCSI] iscsi_transport: Additional parameters for network settings") Signed-off-by: Mike Christie <michael.christie@oracle.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/spi/spi-cadence.c')
0 files changed, 0 insertions, 0 deletions