]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/firewire/fw-transaction.c
firewire: fix panic in handle_at_packet
[linux-2.6-omap-h63xx.git] / drivers / firewire / fw-transaction.c
index 99529e59a0b13e4f5173205f5ab4d338ce6ebe3b..e6f1bda3894040bb3c3bd97536a0243a6568a1ae 100644 (file)
@@ -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);