Commit 3c9bf72
crypto: aspeed - fix double free caused by devm
The clock obtained via devm_clk_get_enabled() is automatically managed
by devres and will be disabled and freed on driver detach. Manually
calling clk_disable_unprepare() in error path and remove function
causes double free.
Remove the manual clock cleanup in both aspeed_acry_probe()'s error
path and aspeed_acry_remove().
Fixes: 2f1cf4e ("crypto: aspeed - Add ACRY RSA driver")
Signed-off-by: Haotian Zhang <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>1 parent 3ac2939 commit 3c9bf72
1 file changed
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
787 | 787 | | |
788 | 788 | | |
789 | 789 | | |
790 | | - | |
791 | 790 | | |
792 | 791 | | |
793 | 792 | | |
| |||
799 | 798 | | |
800 | 799 | | |
801 | 800 | | |
802 | | - | |
803 | 801 | | |
804 | 802 | | |
805 | 803 | | |
| |||
0 commit comments