Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 294116
b: refs/heads/master
c: 90963f1
h: refs/heads/master
v: v3
  • Loading branch information
Stefan Richter committed Feb 22, 2012
1 parent bd0d53f commit e3f1ef6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 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: 280f64d4f108b7ac707d6208d50a59627b984dc5
refs/heads/master: 90963f1cdb3baffc68321e7c98073bf9e99d2ec7
13 changes: 8 additions & 5 deletions trunk/drivers/firewire/core-transaction.c
Original file line number Diff line number Diff line change
Expand Up @@ -602,6 +602,9 @@ EXPORT_SYMBOL(fw_core_add_address_handler);

/**
* fw_core_remove_address_handler() - unregister an address handler
*
* When fw_core_remove_address_handler() returns, @handler->callback() is
* guaranteed to not run on any CPU anymore.
*/
void fw_core_remove_address_handler(struct fw_address_handler *handler)
{
Expand Down Expand Up @@ -838,16 +841,16 @@ static void handle_exclusive_region_request(struct fw_card *card,
spin_lock_irqsave(&address_handler_lock, flags);
handler = lookup_enclosing_address_handler(&address_handler_list,
offset, request->length);
spin_unlock_irqrestore(&address_handler_lock, flags);

if (handler == NULL)
fw_send_response(card, request, RCODE_ADDRESS_ERROR);
else
if (handler)
handler->address_callback(card, request,
tcode, destination, source,
p->generation, offset,
request->data, request->length,
handler->callback_data);
spin_unlock_irqrestore(&address_handler_lock, flags);

if (!handler)
fw_send_response(card, request, RCODE_ADDRESS_ERROR);
}

static void handle_fcp_region_request(struct fw_card *card,
Expand Down

0 comments on commit e3f1ef6

Please sign in to comment.