Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 46fe9155 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "crypto: msm: fix memory leak during algorithm registration"

parents 05c2c8de 3c58438e
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -4010,6 +4010,7 @@ static int _qcrypto_probe(struct platform_device *pdev)
				dev_err(&pdev->dev,
					"The algorithm name %s is too long.\n",
					q_alg->cipher_alg.cra_name);
				kfree(q_alg);
				goto err;
			}
		}
@@ -4043,6 +4044,7 @@ static int _qcrypto_probe(struct platform_device *pdev)
				dev_err(&pdev->dev,
					"The algorithm name %s is too long.\n",
					q_alg->cipher_alg.cra_name);
				kfree(q_alg);
				goto err;
			}
		}
@@ -4079,6 +4081,7 @@ static int _qcrypto_probe(struct platform_device *pdev)
				dev_err(&pdev->dev,
					"The algorithm name %s is too long.\n",
					q_alg->sha_alg.halg.base.cra_name);
				kfree(q_alg);
				goto err;
			}
		}
@@ -4115,6 +4118,7 @@ static int _qcrypto_probe(struct platform_device *pdev)
					dev_err(&pdev->dev,
						"The algorithm name %s is too long.\n",
						q_alg->cipher_alg.cra_name);
					kfree(q_alg);
					goto err;
				}
			}
@@ -4153,6 +4157,7 @@ static int _qcrypto_probe(struct platform_device *pdev)
					dev_err(&pdev->dev,
					     "The algorithm name %s is too long.\n",
					     q_alg->sha_alg.halg.base.cra_name);
					kfree(q_alg);
					goto err;
				}
			}
@@ -4189,6 +4194,7 @@ static int _qcrypto_probe(struct platform_device *pdev)
				dev_err(&pdev->dev,
						"The algorithm name %s is too long.\n",
						q_alg->cipher_alg.cra_name);
				kfree(q_alg);
				goto err;
			}
		}