aboutsummaryrefslogtreecommitdiff
path: root/drivers/fpga/fpga-mgr.c
diff options
context:
space:
mode:
authorEric Dumazet <[email protected]>2022-04-13 10:35:42 -0700
committerJakub Kicinski <[email protected]>2022-04-15 14:26:11 -0700
commitec5b0f605b105457f257f2870acad4a5d463984b (patch)
treec6bc22db7a85cf9dd8db4918bb9143a9f8eeb93c /drivers/fpga/fpga-mgr.c
parent3db09e762dc79584a69c10d74a6b98f89a9979f8 (diff)
net/sched: cls_u32: fix possible leak in u32_init_knode()
While investigating a related syzbot report, I found that whenever call to tcf_exts_init() from u32_init_knode() is failing, we end up with an elevated refcount on ht->refcnt To avoid that, only increase the refcount after all possible errors have been evaluated. Fixes: b9a24bb76bf6 ("net_sched: properly handle failure case of tcf_exts_init()") Signed-off-by: Eric Dumazet <[email protected]> Cc: Cong Wang <[email protected]> Cc: Jiri Pirko <[email protected]> Acked-by: Jamal Hadi Salim <[email protected]> Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions