diff options
-rw-r--r-- | drivers/firewire/core-cdev.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/firewire/core-cdev.c b/drivers/firewire/core-cdev.c index 8be720b278b7..bbb8160e2c99 100644 --- a/drivers/firewire/core-cdev.c +++ b/drivers/firewire/core-cdev.c | |||
@@ -968,7 +968,8 @@ static int ioctl_queue_iso(struct client *client, union ioctl_arg *arg) | |||
968 | if (ctx->header_size == 0) { | 968 | if (ctx->header_size == 0) { |
969 | if (u.packet.header_length > 0) | 969 | if (u.packet.header_length > 0) |
970 | return -EINVAL; | 970 | return -EINVAL; |
971 | } else if (u.packet.header_length % ctx->header_size != 0) { | 971 | } else if (u.packet.header_length == 0 || |
972 | u.packet.header_length % ctx->header_size != 0) { | ||
972 | return -EINVAL; | 973 | return -EINVAL; |
973 | } | 974 | } |
974 | header_length = 0; | 975 | header_length = 0; |