]> git.baikalelectronics.ru Git - kernel.git/commit
firewire: cdev: add closure to async stream ioctl
authorStefan Richter <stefanr@s5r6.in-berlin.de>
Tue, 10 Mar 2009 20:02:21 +0000 (21:02 +0100)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Tue, 24 Mar 2009 19:56:50 +0000 (20:56 +0100)
commite2e94047636eb88ff3336810896f7068805afe34
treefd83055d908e8786afc9b3fbc791b57b2ba10c33
parentbf24e8387a5393698f2b9da95aed12a86ed731ab
firewire: cdev: add closure to async stream ioctl

This changes the as yet unreleased FW_CDEV_IOC_SEND_STREAM_PACKET ioctl
to generate an fw_cdev_event_response event just like the other two
ioctls for asynchronous request transmission do.  This way, clients get
feedback on successful or unsuccessful transmission.

This also adds input validation for length, tag, channel, sy, speed.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
drivers/firewire/fw-cdev.c
drivers/firewire/fw-transaction.c
drivers/firewire/fw-transaction.h
include/linux/firewire-cdev.h