Author: bencollins
Date: 2002-10-21 12:10:00 -0400 (Mon, 21 Oct 2002)
New Revision: 630
Modified:
trunk/raw1394.c
Log:
Use req->req.generation instead of get_hpsb_generation() so we don't have
a race condition.
Modified: trunk/raw1394.c
==============================================================================
--- trunk/raw1394.c (original)
+++ trunk/raw1394.c 2002-10-21 12:10:00.000000000 -0400
@@ -784,7 +784,7 @@
spin_unlock_irq(&fi->reqlists_lock);
/* Update the generation of the packet just before sending. */
- packet->generation = get_hpsb_generation(fi->host);
+ packet->generation = req->req.generation;
if (!hpsb_send_packet(packet)) {
req->req.error = RAW1394_ERROR_SEND_ERROR;
@@ -846,7 +846,7 @@
spin_unlock_irq(&fi->reqlists_lock);
/* Update the generation of the packet just before sending. */
- packet->generation = get_hpsb_generation(fi->host);
+ packet->generation = req->req.generation;
if (!hpsb_send_packet(packet)) {
req->req.error = RAW1394_ERROR_SEND_ERROR;
|