summaryrefslogtreecommitdiffstats
path: root/samples
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2017-04-28 15:03:48 +0200
committerDavid S. Miller <davem@davemloft.net>2017-05-01 04:41:29 +0200
commit39f37095990a39a0ee24f7621d06e9a6da6cd815 (patch)
tree7925780e45f5ad3dc62a5b016b148aefd53f15d9 /samples
parentliquidio: silence a locking static checker warning (diff)
downloadlinux-39f37095990a39a0ee24f7621d06e9a6da6cd815.tar.xz
linux-39f37095990a39a0ee24f7621d06e9a6da6cd815.zip
lwtunnel: fix error path in lwtunnel_fill_encap()
We recently added a check to see if nla_nest_start() fails. There are two issues with that. First, if it fails then I don't think we should call nla_nest_cancel(). Second, it's slightly convoluted but the current code returns success but we should return -EMSGSIZE instead. Fixes: a50fe0ffd76f ("lwtunnel: check return value of nla_nest_start") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Acked-by: David Ahern <dsa@cumulusnetworks.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions