]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
xfrm: eradicate size_t
authorAlexey Dobriyan <adobriyan@gmail.com>
Thu, 21 Sep 2017 20:48:54 +0000 (23:48 +0300)
committerSteffen Klassert <steffen.klassert@secunet.com>
Mon, 25 Sep 2017 05:14:06 +0000 (07:14 +0200)
commita1b831f23a2b3306ecf275872a54abcf97b0b977
tree305ced25afcee84bcb7fd55d7e3fa9d6a8acc849
parent5e708e47c44366453c33373940455a75fd33f635
xfrm: eradicate size_t

All netlink message sizes are a) unsigned, b) can't be >= 4GB in size
because netlink doesn't support >= 64KB messages in the first place.

All those size_t across the code are a scam especially across networking
which likes to work with small numbers like 1500 or 65536.

Propagate unsignedness and flip some "int" to "unsigned int" as well.

This is preparation to switching nlmsg_new() to "unsigned int".

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/xfrm/xfrm_user.c