Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 67349
b: refs/heads/master
c: c1a7217
h: refs/heads/master
i:
  67347: f9b4295
v: v3
  • Loading branch information
Michael Ellerman authored and Paul Mackerras committed Sep 19, 2007
1 parent e128996 commit a770212
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 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: 59000b53c7ea07531018b6cf1f5fcd21e881867a
refs/heads/master: c1a72173ab156306666cb531f891f32e4e21d592
8 changes: 6 additions & 2 deletions trunk/arch/powerpc/platforms/cell/spu_coredump.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,19 @@ static DEFINE_MUTEX(spu_coredump_mutex);

int arch_notes_size(void)
{
long ret;
int ret;

ret = -ENOSYS;
mutex_lock(&spu_coredump_mutex);

if (spu_coredump_calls && try_module_get(spu_coredump_calls->owner)) {
ret = spu_coredump_calls->arch_notes_size();
module_put(spu_coredump_calls->owner);
} else {
ret = 0;
}

mutex_unlock(&spu_coredump_mutex);

return ret;
}

Expand Down

0 comments on commit a770212

Please sign in to comment.