diff options
| author | Mingzhe Zou <[email protected]> | 2022-05-16 05:47:21 +0000 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2022-05-18 01:42:23 +0000 |
| commit | 525f447f88b14a64424642de670f77424e067d5b (patch) | |
| tree | e8e2cf0f0e1633fd4e43e7e9d83e788eeccfcf6f /fs/jbd2/commit.c | |
| parent | scsi: lpfc: Correct BDE DMA address assignment for GEN_REQ_WQE (diff) | |
| download | kernel-525f447f88b14a64424642de670f77424e067d5b.tar.gz kernel-525f447f88b14a64424642de670f77424e067d5b.zip | |
scsi: target: Fix incorrect use of cpumask_t
In commit d72d827f2f26, 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/[email protected]
Fixes: d72d827f2f26 ("scsi: target: Add iscsi/cpus_allowed_list in configfs")
Reported-by: Test Bot <[email protected]>
Reviewed-by: Mike Christie <[email protected]>
Signed-off-by: Mingzhe Zou <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions
