Loading kernel/trace/trace.c +1 −1 Original line number Original line Diff line number Diff line Loading @@ -3328,7 +3328,7 @@ create_trace_option_files(struct tracer *tracer) for (cnt = 0; opts[cnt].name; cnt++) for (cnt = 0; opts[cnt].name; cnt++) ; ; topts = kzalloc(sizeof(*topts) * (cnt + 1), GFP_KERNEL); topts = kcalloc(cnt + 1, sizeof(*topts), GFP_KERNEL); if (!topts) if (!topts) return NULL; return NULL; Loading Loading
kernel/trace/trace.c +1 −1 Original line number Original line Diff line number Diff line Loading @@ -3328,7 +3328,7 @@ create_trace_option_files(struct tracer *tracer) for (cnt = 0; opts[cnt].name; cnt++) for (cnt = 0; opts[cnt].name; cnt++) ; ; topts = kzalloc(sizeof(*topts) * (cnt + 1), GFP_KERNEL); topts = kcalloc(cnt + 1, sizeof(*topts), GFP_KERNEL); if (!topts) if (!topts) return NULL; return NULL; Loading