misc: tegra-cryptodev: fix resource leak
authorSri Krishna chowdary <schowdary@nvidia.com>
Mon, 29 Oct 2012 11:53:27 +0000 (16:53 +0530)
committerSimone Willett <swillett@nvidia.com>
Thu, 1 Nov 2012 02:18:43 +0000 (19:18 -0700)
commite876cad11045e426010d5c1aba35c8abae5178b1
treeea59c2991ab6eb84fe7f556fca4b2b4156575098
parent19932b906fb999b6044dcaac676714e7f81d9883
misc: tegra-cryptodev: fix resource leak

Memory allocated from ablkcipher_request_alloc is
not deallocated before function returns when
crypt_req->keylen is invalid.

Bug 1046331

Change-Id: I9d74159c0653b5b5d08e3d0d00b1919590d7599f
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/159533
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
drivers/misc/tegra-cryptodev.c