Commit f2e3d0d
remoteproc: k3-r5: Use devm_kcalloc() helper
Use a device lifecycle managed action to free memory. This helps prevent
mistakes like freeing out of order in cleanup functions and forgetting
to free on error paths.
Signed-off-by: Beleswar Padhi <[email protected]>
Reviewed-by: Andrew Davis <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mathieu Poirier <[email protected]>1 parent 972361e commit f2e3d0d
1 file changed
+1
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
997 | 997 | | |
998 | 998 | | |
999 | 999 | | |
1000 | | - | |
| 1000 | + | |
1001 | 1001 | | |
1002 | 1002 | | |
1003 | 1003 | | |
| |||
1049 | 1049 | | |
1050 | 1050 | | |
1051 | 1051 | | |
1052 | | - | |
1053 | 1052 | | |
1054 | 1053 | | |
1055 | 1054 | | |
| |||
1059 | 1058 | | |
1060 | 1059 | | |
1061 | 1060 | | |
1062 | | - | |
1063 | 1061 | | |
1064 | 1062 | | |
1065 | 1063 | | |
| |||
0 commit comments