crypto: starfive: jh7110-rsa: Fix the wrong error handling
authorJaehoon Chung <jh80.chung@samsung.com>
Mon, 29 Jan 2024 03:47:03 +0000 (12:47 +0900)
committerJaehoon Chung <jh80.chung@samsung.com>
Mon, 19 Feb 2024 00:14:01 +0000 (09:14 +0900)
commit6400a4433bd5d1b6fb3fb97d351d6d6670df7f0f
treeaea17d93eeca14f656745c9508e8ad7c92a614bb
parent744794055cd8168a5c1c35469f368cf3d7b8f53a
crypto: starfive: jh7110-rsa: Fix the wrong error handling

Fix the wrong error handling.
Even though error is not occurred, rsa_data should be freed.

Change-Id: I40c5cc8bfb7b06e34524e37fc440e515204adf1e
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
drivers/crypto/starfive/jh7110-rsa.c