driver: net: fsl-mc: Memset dprc_cfg before configuring
All fields of struct dprc_cfg are not being configured while creating child container. "Not" configured fields are assumed to be 0. So memset dprc_cfg before configuring the fields. Signed-off-by: Itai Katz <itai.katz@nxp.com> Signed-off-by: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com> Reviewed-by: York Sun <york.sun@nxp.com>
This commit is contained in:
parent
cc7b8b9abb
commit
5373b204df
@ -818,6 +818,7 @@ static int dprc_init(void)
|
||||
goto err_root_open;
|
||||
}
|
||||
|
||||
memset(&cfg, 0, sizeof(struct dprc_cfg));
|
||||
cfg.options = DPRC_CFG_OPT_TOPOLOGY_CHANGES_ALLOWED |
|
||||
DPRC_CFG_OPT_OBJ_CREATE_ALLOWED |
|
||||
DPRC_CFG_OPT_ALLOC_ALLOWED;
|
||||
|
Loading…
Reference in New Issue
Block a user