commit | 1569cf8ac96294083ed0031ef5b4174489cd9472 | [log] [tgz] |
---|---|---|
author | Xin Long <lucien.xin@gmail.com> | Wed Nov 24 12:04:54 2021 -0500 |
committer | Jiri Pirko <jiri@nvidia.com> | Mon Jun 27 17:49:46 2022 +0200 |
tree | 0d4683a66eed6e9ad5aa1a8b179c93db62b02f12 | |
parent | 69a7494bb77dc10bb27076add07b380dbd778592 [diff] |
options: move option temporary check after the err check option is set only if err returned from update_option() is 0, so check err first before checking option->temporary. Otherwise, it may results in a dereference of an undefined pointer value. Fixes: 8180763d6f82 ("libteam: always add newly created option to option list") Signed-off-by: Xin Long <lucien.xin@gmail.com> Signed-off-by: Jiri Pirko <jiri@nvidia.com>