Skip to content
Commit b2c0a2ac authored by Stefan Richter's avatar Stefan Richter
Browse files

firewire: cdev: reduce stack usage by ioctl_dispatch



Replace a hardcoded buffer size by a sizeof union {}.  This shrinks the
stack-allocated ioctl argument buffer from 256 to 40 bytes.  (This is
not much, but subsequent stack usage particularly by the queue_iso ioctl
handler adds up.)

The new form is also easier to keep up to date than a hardcoded size if
more ioctls are added.

Signed-off-by: default avatarStefan Richter <stefanr@s5r6.in-berlin.de>
parent 19593ffd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment