提交 5d59a6f1 编写于 作者: S Stefan Richter

firewire: remove bogus check in fw_core_handle_request

This check is bogus:
  - Maximum asynchronous payload size for S800...S3200 is 4096.
  - The p->payload_length is totally uninteresting.  Only the
    request->length of the subsequently allocated and initialized
    struct fw_request is of significance.
Signed-off-by: NStefan Richter <stefanr@s5r6.in-berlin.de>
Signed-off-by: NKristian Høgsberg <krh@redhat.com>
上级 b980f5a2
...@@ -628,11 +628,6 @@ fw_core_handle_request(struct fw_card *card, struct fw_packet *p) ...@@ -628,11 +628,6 @@ fw_core_handle_request(struct fw_card *card, struct fw_packet *p)
unsigned long flags; unsigned long flags;
int tcode, destination, source; int tcode, destination, source;
if (p->payload_length > 2048) {
/* FIXME: send error response. */
return;
}
if (p->ack != ACK_PENDING && p->ack != ACK_COMPLETE) if (p->ack != ACK_PENDING && p->ack != ACK_COMPLETE)
return; return;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册