Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 33437
b: refs/heads/master
c: e2785f0
h: refs/heads/master
i:
  33435: d2093b3
v: v3
  • Loading branch information
Kevin Hilman authored and Russell King committed Aug 18, 2006
1 parent 61486c5 commit 2b3d68c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 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: 332158e7c206dc6bee0dfb24f2c1d6096e0989cd
refs/heads/master: e2785f0d4251c35d6e82ec819354374c8c17d63d
8 changes: 5 additions & 3 deletions trunk/arch/arm/common/dmabounce.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,17 +179,19 @@ alloc_safe_buffer(struct dmabounce_device_info *device_info, void *ptr,
static inline struct safe_buffer *
find_safe_buffer(struct dmabounce_device_info *device_info, dma_addr_t safe_dma_addr)
{
struct safe_buffer *b = NULL;
struct safe_buffer *b, *rb = NULL;
unsigned long flags;

read_lock_irqsave(&device_info->lock, flags);

list_for_each_entry(b, &device_info->safe_buffers, node)
if (b->safe_dma_addr == safe_dma_addr)
if (b->safe_dma_addr == safe_dma_addr) {
rb = b;
break;
}

read_unlock_irqrestore(&device_info->lock, flags);
return b;
return rb;
}

static inline void
Expand Down

0 comments on commit 2b3d68c

Please sign in to comment.