diff options
author | 2018-01-16 23:01:54 +0100 | |
---|---|---|
committer | 2018-01-19 15:00:48 -0500 | |
commit | dfffc97d0e196c33452a6bce5a78e33786247d23 (patch) | |
tree | cdc3da8a46080e3754576960f6a87dadf51d3f94 /tools/perf/scripts/python/sctop.py | |
parent | Merge branch 'cxgb4-reduce-memory-footprint-for-collecting-firmware-dump' (diff) | |
download | linux-dev-dfffc97d0e196c33452a6bce5a78e33786247d23.tar.xz linux-dev-dfffc97d0e196c33452a6bce5a78e33786247d23.zip |
l2tp: double-check l2specific_type provided by userspace
Add sanity check on l2specific_type provided by userspace in
l2tp_nl_cmd_session_create() since just L2TP_L2SPECTYPE_DEFAULT and
L2TP_L2SPECTYPE_NONE are currently supported.
Moreover explicitly set l2specific_type to L2TP_L2SPECTYPE_DEFAULT
only if the userspace does not provide a value for it
Reviewed-by: Guillaume Nault <g.nault@alphalink.fr>
Tested-by: Guillaume Nault <g.nault@alphalink.fr>
Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions