firewire: cdev: reduce stack usage by ioctl_dispatch
authorStefan Richter <stefanr@s5r6.in-berlin.de>
Thu, 15 Oct 2009 19:16:53 +0000 (21:16 +0200)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Sat, 31 Oct 2009 10:40:52 +0000 (11:40 +0100)
commitb2c0a2ac3e59f4764c59c23bd90b571e44256030
treeb42fc9ccf784a8948161350b01354d0ce3f7b6e8
parent19593ffdb6daa6ba691d247a2400cece12687c52
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: Stefan Richter <stefanr@s5r6.in-berlin.de>
drivers/firewire/core-cdev.c