Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 311121
b: refs/heads/master
c: f39cdae
h: refs/heads/master
i:
  311119: bfd4ecb
v: v3
  • Loading branch information
Anton Blanchard authored and Linus Torvalds committed Jun 20, 2012
1 parent b8e1c13 commit b17e3af
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 10d8935f46e5028847b179757ecbf9238b13d129
refs/heads/master: f39cdaebb89dc3e6dd4f3e75b6d4e87ef12190af
4 changes: 4 additions & 0 deletions trunk/lib/fault-inject.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ static inline bool fail_stacktrace(struct fault_attr *attr)

bool should_fail(struct fault_attr *attr, ssize_t size)
{
/* No need to check any other properties if the probability is 0 */
if (attr->probability == 0)
return false;

if (attr->task_filter && !fail_task(attr, current))
return false;

Expand Down

0 comments on commit b17e3af

Please sign in to comment.