diff options
author | Taehee Yoo <ap420073@gmail.com> | 2019-12-11 11:23:17 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-01-04 15:41:14 +0300 |
commit | 75f08d9211a60c5a732f8009c60a91c5dd38e9fc (patch) | |
tree | 1105744a9042c8533c9c45d2dc9d749e5d7b5748 /drivers/media/video/ivtv/ivtv-driver.h | |
parent | b2c74ebab93e53b226e1a395372ea29d8c10bea8 (diff) | |
download | linux-75f08d9211a60c5a732f8009c60a91c5dd38e9fc.tar.xz |
gtp: fix wrong condition in gtp_genl_dump_pdp()
[ Upstream commit 94a6d9fb88df43f92d943c32b84ce398d50bf49f ]
gtp_genl_dump_pdp() is ->dumpit() callback of GTP module and it is used
to dump pdp contexts. it would be re-executed because of dump packet size.
If dump packet size is too big, it saves current dump pointer
(gtp interface pointer, bucket, TID value) then it restarts dump from
last pointer.
Current GTP code allows adding zero TID pdp context but dump code
ignores zero TID value. So, last dump pointer will not be found.
In addition, this patch adds missing rcu_read_lock() in
gtp_genl_dump_pdp().
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 'drivers/media/video/ivtv/ivtv-driver.h')
0 files changed, 0 insertions, 0 deletions