projects/linux·commit 45ddfbf9

Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394/linux1394-2.6

45ddfbf9 · Linus Torvalds <[email protected]> · 2008-03-20 10:48:01 -07:00

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394/linux1394-2.6:
  firewire: fix panic in handle_at_packet
Commit
45ddfbf9594a344dfecbb320d74636023d813539
Parents
d67e9111 · 10a4c735

Merge commit. Changes below are compared with the first parent: d67e9111.

Changes

1 files changed · +6 −0

FileStatusAddDelContent
drivers/firewire/fw-transaction.cmodified+6−0View file

drivers/firewire/fw-transaction.c

View file
diff --git a/drivers/firewire/fw-transaction.c b/drivers/firewire/fw-transaction.c
index 99529e5..e6f1bda 100644
--- a/drivers/firewire/fw-transaction.c
+++ b/drivers/firewire/fw-transaction.c
@@ -736,6 +736,12 @@ fw_core_handle_response(struct fw_card *card, struct fw_packet *p)
break;
}
+ /*
+ * The response handler may be executed while the request handler
+ * is still pending. Cancel the request handler.
+ */
+ card->driver->cancel_packet(card, &t->packet);
+
t->callback(card, rcode, data, data_length, t->callback_data);
}
EXPORT_SYMBOL(fw_core_handle_response);