Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 57905
b: refs/heads/master
c: 24315c5
h: refs/heads/master
i:
  57903: 62104d4
v: v3
  • Loading branch information
Kristian Høgsberg authored and Stefan Richter committed Jun 20, 2007
1 parent 1e4a147 commit 4c62dc3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 18b461796b737f94286f73710debc8649467161b
refs/heads/master: 24315c5e6f508edd84e996d67daef3d1bcc72f8b
19 changes: 11 additions & 8 deletions trunk/drivers/firewire/fw-cdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -640,6 +640,7 @@ iso_callback(struct fw_iso_context *context, u32 cycle,
static int ioctl_create_iso_context(struct client *client, void *buffer)
{
struct fw_cdev_create_iso_context *request = buffer;
struct fw_iso_context *context;

if (request->channel > 63)
return -EINVAL;
Expand All @@ -661,15 +662,17 @@ static int ioctl_create_iso_context(struct client *client, void *buffer)
return -EINVAL;
}

context = fw_iso_context_create(client->device->card,
request->type,
request->channel,
request->speed,
request->header_size,
iso_callback, client);
if (IS_ERR(context))
return PTR_ERR(context);

client->iso_closure = request->closure;
client->iso_context = fw_iso_context_create(client->device->card,
request->type,
request->channel,
request->speed,
request->header_size,
iso_callback, client);
if (IS_ERR(client->iso_context))
return PTR_ERR(client->iso_context);
client->iso_context = context;

/* We only support one context at this time. */
request->handle = 0;
Expand Down

0 comments on commit 4c62dc3

Please sign in to comment.