]> git.itanic.dy.fi Git - linux-stable/commit
gtp: avoid zero size hashtable
authorTaehee Yoo <ap420073@gmail.com>
Wed, 11 Dec 2019 08:23:48 +0000 (08:23 +0000)
committerJakub Kicinski <jakub.kicinski@netronome.com>
Sun, 15 Dec 2019 01:15:24 +0000 (17:15 -0800)
commit6a902c0f31993ab02e1b6ea7085002b9c9083b6a
tree0c3c21f1217705dad14aecd5de3c69715fc70760
parent94dc550a5062030569d4aa76e10e50c8fc001930
gtp: avoid zero size hashtable

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>
drivers/net/gtp.c