diff options
author | Salona Sinha <salonas@nvidia.com> | 2014-01-15 18:14:50 +0530 |
---|---|---|
committer | Sachin Nikam <snikam@nvidia.com> | 2014-01-16 01:20:21 -0800 |
commit | 6f63c963f1b5d96aea584e515a000f5387ff3852 (patch) | |
tree | 51454079b8414364588fb3901e0e5cbc0c9820d1 | |
parent | 908b2f172be5aea21c29ac3cebfba75eec81e184 (diff) |
crypto: tegra-se: fix resourse leak
Coverity id : 25364
Bug 1416640
Change-Id: I6cbdc67004f94f2afbc4c8b656631f4d4a0ce8c5
Signed-off-by: Salona Sinha <salonas@nvidia.com>
Reviewed-on: http://git-master/r/356025
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
-rw-r--r-- | drivers/crypto/tegra-se.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/crypto/tegra-se.c b/drivers/crypto/tegra-se.c index 398d7d2457db..337dd138d1bf 100644 --- a/drivers/crypto/tegra-se.c +++ b/drivers/crypto/tegra-se.c @@ -4,7 +4,7 @@ * * Support for Tegra Security Engine hardware crypto algorithms. * - * Copyright (c) 2011-2013, NVIDIA Corporation. All Rights Reserved. + * Copyright (c) 2011-2014, NVIDIA Corporation. All Rights Reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -2609,6 +2609,7 @@ static int tegra_se_probe(struct platform_device *pdev) &pdev->dev); if (!match) { dev_err(&pdev->dev, "Error: No device match found\n"); + kfree(se_dev); return -ENODEV; } se_dev->chipdata = (struct tegra_se_chipdata *)match->data; |