]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/firewire/fw-transaction.h
firewire: fix memory leak of fw_request instances
[karo-tx-linux.git] / drivers / firewire / fw-transaction.h
index b6b42fa3fff0ed38965c270cb8bd9f84fe5ab817..e2b9ca43ffaa1f2c589e4a1f55ca7df05c398b1c 100644 (file)
@@ -124,6 +124,10 @@ typedef void (*fw_transaction_callback_t)(struct fw_card *card, int rcode,
                                          size_t length,
                                          void *callback_data);
 
+/*
+ * Important note:  The callback must guarantee that either fw_send_response()
+ * or kfree() is called on the @request.
+ */
 typedef void (*fw_address_callback_t)(struct fw_card *card,
                                      struct fw_request *request,
                                      int tcode, int destination, int source,