diff options
author | Wenchao Hao <haowenchao@huawei.com> | 2022-03-09 20:57:58 -0500 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2022-03-15 00:19:50 -0400 |
commit | 7dae459f5e56a89ab01413ae055595c982713349 (patch) | |
tree | 659ba5e8d407b26d135cb2aa03e35b7dc37813ac /COPYING | |
parent | ad515cada7dac3cdf5e1ad77a0ed696f5f34e0ab (diff) | |
download | linux-7dae459f5e56a89ab01413ae055595c982713349.tar.bz2 |
scsi: libiscsi: Add iscsi_cls_conn to sysfs after initialization
iscsi_create_conn() exposed iscsi_cls_conn to sysfs prior to initialization
of iscsi_conn's dd_data. When userspace tried to access an attribute such
as the connect address, a NULL pointer dereference was observed.
Do not add iscsi_cls_conn to sysfs until it has been initialized. Remove
iscsi_create_conn() since it is no longer used.
Link: https://lore.kernel.org/r/20220310015759.3296841-3-haowenchao@huawei.com
Reviewed-by: Mike Christie <michael.christie@oracle.com>
Signed-off-by: Wenchao Hao <haowenchao@huawei.com>
Signed-off-by: Wu Bo <wubo40@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions