|
@@ -1703,11 +1703,11 @@ static int sock_map_ctx_update_elem(struct bpf_sock_ops_kern *skops,
|
|
* we increment the refcnt. If this is the case abort with an
|
|
* we increment the refcnt. If this is the case abort with an
|
|
* error.
|
|
* error.
|
|
*/
|
|
*/
|
|
- verdict = bpf_prog_inc_not_zero(stab->bpf_verdict);
|
|
|
|
|
|
+ verdict = bpf_prog_inc_not_zero(verdict);
|
|
if (IS_ERR(verdict))
|
|
if (IS_ERR(verdict))
|
|
return PTR_ERR(verdict);
|
|
return PTR_ERR(verdict);
|
|
|
|
|
|
- parse = bpf_prog_inc_not_zero(stab->bpf_parse);
|
|
|
|
|
|
+ parse = bpf_prog_inc_not_zero(parse);
|
|
if (IS_ERR(parse)) {
|
|
if (IS_ERR(parse)) {
|
|
bpf_prog_put(verdict);
|
|
bpf_prog_put(verdict);
|
|
return PTR_ERR(parse);
|
|
return PTR_ERR(parse);
|
|
@@ -1715,7 +1715,7 @@ static int sock_map_ctx_update_elem(struct bpf_sock_ops_kern *skops,
|
|
}
|
|
}
|
|
|
|
|
|
if (tx_msg) {
|
|
if (tx_msg) {
|
|
- tx_msg = bpf_prog_inc_not_zero(stab->bpf_tx_msg);
|
|
|
|
|
|
+ tx_msg = bpf_prog_inc_not_zero(tx_msg);
|
|
if (IS_ERR(tx_msg)) {
|
|
if (IS_ERR(tx_msg)) {
|
|
if (parse && verdict) {
|
|
if (parse && verdict) {
|
|
bpf_prog_put(parse);
|
|
bpf_prog_put(parse);
|