summaryrefslogtreecommitdiffstats
path: root/include/rdma
diff options
context:
space:
mode:
authorMarcelo Ricardo Leitner <marcelo.leitner@gmail.com>2018-01-08 22:02:29 +0100
committerDavid S. Miller <davem@davemloft.net>2018-01-10 20:53:22 +0100
commitc76f97c99ae6d26d14c7f0e50e074382bfbc9f98 (patch)
treeda82823b2b3fa04568f7ab98c984476728ea6cbc /include/rdma
parentsctp: add a ceiling to optlen in some sockopts (diff)
downloadlinux-c76f97c99ae6d26d14c7f0e50e074382bfbc9f98.tar.xz
linux-c76f97c99ae6d26d14c7f0e50e074382bfbc9f98.zip
sctp: make use of pre-calculated len
Some sockopt handling functions were calculating the length of the buffer to be written to userspace and then calculating it again when actually writing the buffer, which could lead to some write not using an up-to-date length. This patch updates such places to just make use of the len variable. Also, replace some sizeof(type) to sizeof(var). Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/rdma')
0 files changed, 0 insertions, 0 deletions