diff options
| author | 2022-03-09 20:57:58 -0500 | |
|---|---|---|
| committer | 2022-03-15 00:19:50 -0400 | |
| commit | 7dae459f5e56a89ab01413ae055595c982713349 (patch) | |
| tree | 659ba5e8d407b26d135cb2aa03e35b7dc37813ac /samples/git:/ssh:/git@git.zx2c4.com | |
| parent | scsi: iscsi: Add helper functions to manage iscsi_cls_conn (diff) | |
| download | linux-dev-7dae459f5e56a89ab01413ae055595c982713349.tar.xz linux-dev-7dae459f5e56a89ab01413ae055595c982713349.zip | |
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 'samples/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
