summaryrefslogtreecommitdiffstats
path: root/include/net/xfrm.h
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2017-09-21 23:45:43 +0300
committerSteffen Klassert <steffen.klassert@secunet.com>2017-09-25 07:14:06 +0200
commit373b8eeb0c15d4ce58f62afb12f213b1b5bbc3d3 (patch)
treea5ddc1316898c7b3cc481b45451eef98cf3e8585 /include/net/xfrm.h
parent39e50d9637f9a31967ac9e956b829ee8b50a750f (diff)
downloadtalos-op-linux-373b8eeb0c15d4ce58f62afb12f213b1b5bbc3d3.tar.gz
talos-op-linux-373b8eeb0c15d4ce58f62afb12f213b1b5bbc3d3.zip
xfrm: make aead_len() return unsigned int
Key lengths can't be negative. Comparison with nla_len() is left signed just in case negative value can sneak in there. Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'include/net/xfrm.h')
-rw-r--r--include/net/xfrm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/xfrm.h b/include/net/xfrm.h
index f002a2c5e33c..0be4c547e383 100644
--- a/include/net/xfrm.h
+++ b/include/net/xfrm.h
@@ -1764,7 +1764,7 @@ static inline int xfrm_acquire_is_on(struct net *net)
}
#endif
-static inline int aead_len(struct xfrm_algo_aead *alg)
+static inline unsigned int aead_len(struct xfrm_algo_aead *alg)
{
return sizeof(*alg) + ((alg->alg_key_len + 7) / 8);
}
OpenPOWER on IntegriCloud