ieee1394: raw1394: Fix async send
authorPetr Vandrovec <petr@vandrovec.name>
Mon, 14 May 2007 05:14:44 +0000 (22:14 -0700)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Sun, 27 May 2007 21:21:00 +0000 (23:21 +0200)
commit976da96a5d4fe84bd292b950e566325dc3e5904e
treece6f96ec99f8e2e138d2239fb2ac857c29de2b28
parentef50a6c59dc66f22eba67704e291d709f21e0456
ieee1394: raw1394: Fix async send

While playing with libiec61883 I've noticed that async_send is broken
because it was doing copy_from_user(...., packet->data_size) before
packet->data_size was set to any useful value.  It got broken when
packet->allocated_data_size got introduced, as hpsb_alloc_packet does
not set packet->data_size anymore.  (Regression in 2.6.22-rc1)

Signed-off-by: Petr Vandrovec <petr@vandrovec.name>
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
drivers/ieee1394/raw1394.c