Skip to content

Commit

Permalink
tetragon: fixup generic tracepoint sensor create
Browse files Browse the repository at this point in the history
Signed-off-by: dechengyuan <dechengyuan@tencent.com>
  • Loading branch information
dechengyuan authored and kkourt committed Dec 5, 2022
1 parent 9aae81d commit 6d27100
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/sensors/tracing/generictracepoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -318,8 +318,8 @@ func createGenericTracepoint(sensorName string, conf *GenericTracepointConf) (*g
func createGenericTracepointSensor(name string, confs []GenericTracepointConf) (*sensors.Sensor, error) {

tracepoints := make([]*genericTracepoint, 0, len(confs))
for _, conf := range confs {
tp, err := createGenericTracepoint(name, &conf)
for i := range confs {
tp, err := createGenericTracepoint(name, &confs[i])
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 6d27100

Please sign in to comment.