aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Percival <cperciva@FreeBSD.org>2004-02-22 01:10:11 +0000
committerColin Percival <cperciva@FreeBSD.org>2004-02-22 01:10:11 +0000
commita333b323e1dd34e7d12d335f1b12cf258a1c73c5 (patch)
treeafae31bc79130693d371bd6daccabce156a524a5
parentbff4678e78c3ba98c180d08da44a1826c09d9594 (diff)
Notes
-rw-r--r--sys/dev/firewire/firewire.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/firewire/firewire.c b/sys/dev/firewire/firewire.c
index 6af01a00f9dc0..db9d5a86e499f 100644
--- a/sys/dev/firewire/firewire.c
+++ b/sys/dev/firewire/firewire.c
@@ -973,10 +973,10 @@ fw_xfer_alloc_buf(struct malloc_type *type, int send_len, int recv_len)
struct fw_xfer *xfer;
xfer = fw_xfer_alloc(type);
- xfer->send.pay_len = send_len;
- xfer->recv.pay_len = recv_len;
if (xfer == NULL)
return(NULL);
+ xfer->send.pay_len = send_len;
+ xfer->recv.pay_len = recv_len;
if (send_len > 0) {
xfer->send.payload = malloc(send_len, type, M_NOWAIT | M_ZERO);
if (xfer->send.payload == NULL) {