Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 228462
b: refs/heads/master
c: 25f3ff2
h: refs/heads/master
v: v3
  • Loading branch information
Mike Frysinger committed Jan 10, 2011
1 parent 353f966 commit 0cb6450
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 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: a8b19886097032df38bd521cece4bc538fee2266
refs/heads/master: 25f3ff2c445822793d22ac51e3dcb22a694e3cd4
18 changes: 9 additions & 9 deletions trunk/arch/blackfin/mm/sram-alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -704,18 +704,18 @@ int sram_free_with_lsl(const void *addr)
{
struct sram_list_struct *lsl, **tmp;
struct mm_struct *mm = current->mm;
int ret = -1;

for (tmp = &mm->context.sram_list; *tmp; tmp = &(*tmp)->next)
if ((*tmp)->addr == addr)
goto found;
return -1;
found:
lsl = *tmp;
sram_free(addr);
*tmp = lsl->next;
kfree(lsl);
if ((*tmp)->addr == addr) {
lsl = *tmp;
ret = sram_free(addr);
*tmp = lsl->next;
kfree(lsl);
break;
}

return 0;
return ret;
}
EXPORT_SYMBOL(sram_free_with_lsl);

Expand Down

0 comments on commit 0cb6450

Please sign in to comment.