summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorKonduri Praveen <kondurip@nvidia.com>2017-05-04 01:18:50 +0530
committerWinnie Hsu <whsu@nvidia.com>2017-05-12 14:47:38 -0700
commitc15231b2c2b5799645d599310421d1d6c46b395b (patch)
tree816e21549972e26202c74d320144265c9d9e39be /drivers
parent584a7d4adf7b5a03d340e54094ce90d0584d59b7 (diff)
tegra-cryptodev: type modifier change in plaintext_sz
change the type modifier from signed to unsigned for plaintext_sz variable in tegra_sha_req structure to avoid occurence of negative values in plaintext_sz variable. Bug 1883640 Change-Id: I853f1916f7d4b6ea901cfe83419d624720a7e64f Signed-off-by: Konduri Praveen <kondurip@nvidia.com> Reviewed-on: http://git-master/r/1474814 GVS: Gerrit_Virtual_Submit Reviewed-by: Mallikarjun Kasoju <mkasoju@nvidia.com> Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/misc/tegra-cryptodev.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/misc/tegra-cryptodev.h b/drivers/misc/tegra-cryptodev.h
index e3ee4cacfb79..de89516fe6fc 100644
--- a/drivers/misc/tegra-cryptodev.h
+++ b/drivers/misc/tegra-cryptodev.h
@@ -146,7 +146,7 @@ struct tegra_sha_req {
unsigned char *algo;
unsigned char *plaintext;
unsigned char *result;
- int plaintext_sz;
+ unsigned int plaintext_sz;
};
#define TEGRA_CRYPTO_IOCTL_GET_SHA \
_IOWR(0x98, 104, struct tegra_sha_req)
@@ -154,11 +154,11 @@ struct tegra_sha_req {
#ifdef CONFIG_COMPAT
struct tegra_sha_req_32 {
char key[TEGRA_CRYPTO_MAX_KEY_SIZE];
- unsigned int keylen;
+ __u32 keylen;
__u32 algo;
__u32 plaintext;
__u32 result;
- int plaintext_sz;
+ __u32 plaintext_sz;
};
#define TEGRA_CRYPTO_IOCTL_GET_SHA_32 \
_IOWR(0x98, 104, struct tegra_sha_req_32)