crypto: tegra-se: Fix SG buffer length mismatch
authorMallikarjun Kasoju <mkasoju@nvidia.com>
Tue, 17 Jan 2012 14:22:05 +0000 (19:22 +0530)
committerVarun Colbert <vcolbert@nvidia.com>
Fri, 20 Jan 2012 00:26:46 +0000 (16:26 -0800)
commit58f2a48aba86b1ea804f9b11514d5545dde5a153
treed79c95adf63e826f31edb4f1ea9d310dfa5004a0
parentf245f8f8bd58d1df0a1eb1bf73ad03fb3772813d
crypto: tegra-se: Fix SG buffer length mismatch

Fixed the case where SG buffer length is more than actual number
of bytes to process.

Bug 922857

Change-Id: I8445d8ae74b8fc6c964c19523fcd731f7ba4bd37
Reviewed-on: http://git-master/r/75701
Signed-off-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/75891
Reviewed-by: Automatic_Commit_Validation_User
drivers/crypto/tegra-se.c