diff options
author | Wenchao Hao <[email protected]> | 2022-03-09 20:57:58 -0500 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2022-03-15 00:19:50 -0400 |
commit | 7dae459f5e56a89ab01413ae055595c982713349 (patch) | |
tree | 659ba5e8d407b26d135cb2aa03e35b7dc37813ac /scripts/gdb/linux/mm.py | |
parent | ad515cada7dac3cdf5e1ad77a0ed696f5f34e0ab (diff) |
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/[email protected]
Reviewed-by: Mike Christie <[email protected]>
Signed-off-by: Wenchao Hao <[email protected]>
Signed-off-by: Wu Bo <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/mm.py')
0 files changed, 0 insertions, 0 deletions