fault-injection: skip stacktrace filtering by default
[linux-block.git] / lib / fault-inject.c
index 1421818c9ef75eff0f31ab7ee2b3c8c24789d883..fecc4d8ca32ae3b74d3bcfa784eba87269a8f74a 100644 (file)
@@ -71,7 +71,7 @@ static bool fail_stacktrace(struct fault_attr *attr)
        int n, nr_entries;
        bool found = (attr->require_start == 0 && attr->require_end == ULONG_MAX);
 
-       if (depth == 0)
+       if (depth == 0 || (found && !attr->reject_start && !attr->reject_end))
                return found;
 
        nr_entries = stack_trace_save(entries, depth, 1);