Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 43765
b: refs/heads/master
c: f1729c2
h: refs/heads/master
i:
  43763: 48f99b9
v: v3
  • Loading branch information
Don Mullis authored and Linus Torvalds committed Dec 8, 2006
1 parent 468c209 commit f728121
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a124c28ef85d9b780c418b2c5d8f01cd6a06ff3e
refs/heads/master: f1729c28a37e4f11ea5d9f468ab26adadb1aadab
11 changes: 4 additions & 7 deletions trunk/lib/fault-inject.c
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,6 @@ bool should_fail(struct fault_attr *attr, ssize_t size)
if (attr->task_filter && !fail_task(attr, current))
return false;

if (!fail_stacktrace(attr))
return false;

if (atomic_read(&attr->times) == 0)
return false;

Expand All @@ -159,12 +156,12 @@ bool should_fail(struct fault_attr *attr, ssize_t size)
return false;
}

if (attr->probability > random32() % 100)
goto fail;
if (attr->probability <= random32() % 100)
return false;

return false;
if (!fail_stacktrace(attr))
return false;

fail:
fail_dump(attr);

if (atomic_read(&attr->times) != -1)
Expand Down

0 comments on commit f728121

Please sign in to comment.