summaryrefslogtreecommitdiff
path: root/arch/parisc/kernel/syscall.S
diff options
context:
space:
mode:
authorIgnacy Gawędzki <ignacy.gawedzki@green-communications.fr>2015-02-03 19:05:18 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-10-27 10:17:24 +0200
commit9918b51157fdf22c430ddec6b4d772aa1cbc7775 (patch)
tree355d816d44dc4fd82b6fdc37d832c6390433bbbd /arch/parisc/kernel/syscall.S
parent98c4e5cae5204c1114390219331ddd649d78a5a7 (diff)
cls_api.c: Fix dumping of non-existing actions' stats.
commit b057df24a7536cce6c372efe9d0e3d1558afedf4 upstream. In tcf_exts_dump_stats(), ensure that exts->actions is not empty before accessing the first element of that list and calling tcf_action_copy_stats() on it. This fixes some random segvs when adding filters of type "basic" with no particular action. This also fixes the dumping of those "no-action" filters, which more often than not made calls to tcf_action_copy_stats() fail and consequently netlink attributes added by the caller to be removed by a call to nla_nest_cancel(). Fixes: 33be62715991 ("net_sched: act: use standard struct list_head") Signed-off-by: Ignacy Gawędzki <ignacy.gawedzki@green-communications.fr> Acked-by: Cong Wang <cwang@twopensource.com> Signed-off-by: David S. Miller <davem@davemloft.net> Cc: J Pommnitz <jpo234@outlook.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/parisc/kernel/syscall.S')
0 files changed, 0 insertions, 0 deletions