summaryrefslogtreecommitdiffstats
path: root/drivers/firewire/fw-card.c
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@redhat.com>2007-03-28 21:26:42 +0200
committerStefan Richter <stefanr@s5r6.in-berlin.de>2007-03-28 21:30:14 +0200
commit66dea3e5f69abfdfa46b091ea117e497758351e7 (patch)
tree5db4238ff230cdb86f5c977c5a8cf0e76d055310 /drivers/firewire/fw-card.c
parentda8ecffaed434a12930f652898f9e86d1c2abc3e (diff)
firewire: Add ioctls to add and remove config rom descriptors.
Signed-off-by: Kristian Høgsberg <krh@redhat.com> Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de> (fixed whitespace)
Diffstat (limited to 'drivers/firewire/fw-card.c')
-rw-r--r--drivers/firewire/fw-card.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/firewire/fw-card.c b/drivers/firewire/fw-card.c
index 34863b60e23..3eb06556a0c 100644
--- a/drivers/firewire/fw-card.c
+++ b/drivers/firewire/fw-card.c
@@ -160,7 +160,7 @@ fw_core_add_descriptor (struct fw_descriptor *desc)
i += (desc->data[i] >> 16) + 1;
if (i != desc->length)
- return -1;
+ return -EINVAL;
down_write(&fw_bus_type.subsys.rwsem);