linux/drivers/target/iscsi
Mingzhe Zou 525f447f88 scsi: target: Fix incorrect use of cpumask_t
In commit d72d827f2f, I used 'cpumask_t' incorrectly:

    void iscsit_thread_get_cpumask(struct iscsi_conn *conn)
    {
            int ord, cpu;
            cpumask_t conn_allowed_cpumask;
            ......
    }

    static ssize_t lio_target_wwn_cpus_allowed_list_store(
                   struct config_item *item, const char *page, size_t count)
    {
            int ret;
            char *orig;
            cpumask_t new_allowed_cpumask;
            ......
    }

The correct pattern should be as follows:

    cpumask_var_t mask;

    if (!zalloc_cpumask_var(&mask, GFP_KERNEL))
            return -ENOMEM;
    ... use 'mask' here ...
    free_cpumask_var(mask);

Link: https://lore.kernel.org/r/20220516054721.1548-1-mingzhe.zou@easystack.cn
Fixes: d72d827f2f ("scsi: target: Add iscsi/cpus_allowed_list in configfs")
Reported-by: Test Bot <zgrieee@gmail.com>
Reviewed-by: Mike Christie <michael.christie@oracle.com>
Signed-off-by: Mingzhe Zou <mingzhe.zou@easystack.cn>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2022-05-17 21:42:23 -04:00
..
cxgbit scsi: target: cxgbit: Enable Delayed ACK 2021-10-18 22:38:35 -04:00
iscsi_target_auth.c mm, treewide: rename kzfree() to kfree_sensitive() 2020-08-07 11:33:22 -07:00
iscsi_target_auth.h scsi: target: iscsi: tie the challenge length to the hash digest size 2019-11-06 00:13:24 -05:00
iscsi_target_configfs.c scsi: target: Fix incorrect use of cpumask_t 2022-05-17 21:42:23 -04:00
iscsi_target_datain_values.c
iscsi_target_datain_values.h
iscsi_target_device.c
iscsi_target_device.h
iscsi_target_erl0.c scsi: target: iscsi: Avoid in_interrupt() usage in iscsit_close_session() 2021-01-22 20:25:25 -05:00
iscsi_target_erl0.h
iscsi_target_erl1.c scsi: target: iscsi: Remove redundant continue statement 2021-06-18 23:01:03 -04:00
iscsi_target_erl1.h
iscsi_target_erl2.c
iscsi_target_erl2.h
iscsi_target_login.c scsi: target: Add iscsi/cpus_allowed_list in configfs 2022-03-14 23:40:36 -04:00
iscsi_target_login.h scsi: target: iscsi: Fix hang in iscsit_access_np() when getting tpg->np_login_sem 2020-09-02 21:08:22 -04:00
iscsi_target_nego.c scsi: target: iscsi: Drop unnecessary container_of() 2021-05-14 22:40:45 -04:00
iscsi_target_nego.h
iscsi_target_nodeattrib.c
iscsi_target_nodeattrib.h
iscsi_target_parameters.c scsi: target: iscsi: Switch to kmemdup_nul() 2021-05-10 13:24:03 -04:00
iscsi_target_parameters.h scsi: target: remove unused extension parameters 2019-10-22 22:14:25 -04:00
iscsi_target_seq_pdu_list.c
iscsi_target_seq_pdu_list.h
iscsi_target_stat.c scsi: target: iscsi: Remove unused macro ISCSI_INST_LAST_FAILURE_TYPE 2021-03-09 23:47:18 -05:00
iscsi_target_tmr.c
iscsi_target_tmr.h
iscsi_target_tpg.c scsi: target: iscsi: Make sure the np under each tpg is unique 2022-01-24 23:30:24 -05:00
iscsi_target_tpg.h
iscsi_target_transport.c scsi: target: Make iscsit_register_transport() return void 2020-08-04 20:56:56 -04:00
iscsi_target_util.c scsi: target: iscsi: Remove unused macro PRINT_BUF 2021-03-09 23:47:18 -05:00
iscsi_target_util.h scsi: target: iscsi: Redo iscsit_check_session_usage_count() return code 2021-01-22 20:25:25 -05:00
iscsi_target.c scsi: target: Fix incorrect use of cpumask_t 2022-05-17 21:42:23 -04:00
iscsi_target.h scsi: target: iscsi: Avoid in_interrupt() usage in iscsit_close_session() 2021-01-22 20:25:25 -05:00
Kconfig net: add sock_set_reuseaddr 2020-05-28 11:11:44 -07:00
Makefile