[LU-15328] lnet_selftest_init does not set rc on allocation failure Created: 07/Dec/21 Updated: 26/Jan/22 Resolved: 26/Jan/22 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | Lustre 2.15.0 |
| Fix Version/s: | Lustre 2.15.0 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Oleg Drokin | Assignee: | Oleg Drokin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Severity: | 3 |
| Rank (Obsolete): | 9223372036854775807 |
| Description |
static int __init
lnet_selftest_init(void)
{
int nscheds;
int rc;
int i; rc = cfs_wi_sched_create("lst_s", lnet_cpt_table(), CFS_CPT_ANY,
1, &lst_sched_serial);
if (rc != 0) {
CERROR("Failed to create serial WI scheduler for LST\n");
return rc;
}
lst_init_step = LST_INIT_WI_SERIAL; nscheds = cfs_cpt_number(lnet_cpt_table());
CFS_ALLOC_PTR_ARRAY(lst_sched_test, nscheds);
if (lst_sched_test == NULL)
goto error;
...
error:
lnet_selftest_exit();
return rc;
should set rc to -ENOMEM before that goto |
| Comments |
| Comment by Gerrit Updater [ 07/Dec/21 ] |
|
"Oleg Drokin <green@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/45763 |
| Comment by Gerrit Updater [ 26/Jan/22 ] |
|
"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/45763/ |
| Comment by Peter Jones [ 26/Jan/22 ] |
|
Landed for 2.15 |