Commit d93f024
library-manager: fix a potential NULL dereference
If module registration fails, lib_manager_load_library() will jump to
"cleanup" where it will attempt to check whether a module is an LLEXT
but in such cases the "mod" pointer can be NULL, which will cause an
exception. Check the error code before checking the module type.
Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>1 parent 3a2297c commit d93f024
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1030 | 1030 | | |
1031 | 1031 | | |
1032 | 1032 | | |
1033 | | - | |
| 1033 | + | |
1034 | 1034 | | |
1035 | 1035 | | |
1036 | 1036 | | |
| |||
1039 | 1039 | | |
1040 | 1040 | | |
1041 | 1041 | | |
1042 | | - | |
| 1042 | + | |
1043 | 1043 | | |
1044 | 1044 | | |
1045 | 1045 | | |
0 commit comments