diff options
-rw-r--r-- | drivers/firewire/ohci.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/firewire/ohci.c b/drivers/firewire/ohci.c index f1497b1fcf2e..c0572283b93e 100644 --- a/drivers/firewire/ohci.c +++ b/drivers/firewire/ohci.c | |||
@@ -2706,6 +2706,10 @@ static int ohci_start_iso(struct fw_iso_context *base, | |||
2706 | u32 control = IR_CONTEXT_ISOCH_HEADER, match; | 2706 | u32 control = IR_CONTEXT_ISOCH_HEADER, match; |
2707 | int index; | 2707 | int index; |
2708 | 2708 | ||
2709 | /* the controller cannot start without any queued packets */ | ||
2710 | if (ctx->context.last->branch_address == 0) | ||
2711 | return -ENODATA; | ||
2712 | |||
2709 | switch (ctx->base.type) { | 2713 | switch (ctx->base.type) { |
2710 | case FW_ISO_CONTEXT_TRANSMIT: | 2714 | case FW_ISO_CONTEXT_TRANSMIT: |
2711 | index = ctx - ohci->it_context_list; | 2715 | index = ctx - ohci->it_context_list; |