diff options
author | Taehee Yoo <ap420073@gmail.com> | 2019-12-11 11:23:48 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-01-04 15:41:15 +0300 |
commit | 3db5dee970949d98eb0430909f0fa764eea548d9 (patch) | |
tree | cc8ec2f3ee666f974186eff442c548c4db28ec4d /include/asm-generic/bitops/atomic.h | |
parent | 75f08d9211a60c5a732f8009c60a91c5dd38e9fc (diff) | |
download | linux-3db5dee970949d98eb0430909f0fa764eea548d9.tar.xz |
gtp: avoid zero size hashtable
[ Upstream commit 6a902c0f31993ab02e1b6ea7085002b9c9083b6a ]
GTP default hashtable size is 1024 and userspace could set specific
hashtable size with IFLA_GTP_PDP_HASHSIZE. If hashtable size is set to 0
from userspace, hashtable will not work and panic will occur.
Fixes: 459aa660eb1d ("gtp: add initial driver for datapath of GPRS Tunneling Protocol (GTP-U)")
Signed-off-by: Taehee Yoo <ap420073@gmail.com>
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/asm-generic/bitops/atomic.h')
0 files changed, 0 insertions, 0 deletions