]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - kernel/trace/trace_mmiotrace.c
NFC: Close a race condition in llcp_sock_getname()
[karo-tx-linux.git] / kernel / trace / trace_mmiotrace.c
index 638e110c5bfd4061a299a1ef3a568375c015182a..2be8c4f2403d8c6f79df5cb7e5605eec01ea4a23 100644 (file)
@@ -314,7 +314,7 @@ static void __trace_mmiotrace_rw(struct trace_array *tr,
        entry->rw                       = *rw;
 
        if (!call_filter_check_discard(call, entry, buffer, event))
-               trace_buffer_unlock_commit(buffer, event, 0, pc);
+               trace_buffer_unlock_commit(tr, buffer, event, 0, pc);
 }
 
 void mmio_trace_rw(struct mmiotrace_rw *rw)
@@ -344,7 +344,7 @@ static void __trace_mmiotrace_map(struct trace_array *tr,
        entry->map                      = *map;
 
        if (!call_filter_check_discard(call, entry, buffer, event))
-               trace_buffer_unlock_commit(buffer, event, 0, pc);
+               trace_buffer_unlock_commit(tr, buffer, event, 0, pc);
 }
 
 void mmio_trace_mapping(struct mmiotrace_map *map)