]> git.baikalelectronics.ru Git - kernel.git/commit
firewire: cdev: address handler input validation
authorStefan Richter <stefanr@s5r6.in-berlin.de>
Sun, 14 Dec 2008 18:21:01 +0000 (19:21 +0100)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Tue, 24 Mar 2009 19:56:38 +0000 (20:56 +0100)
commit2d371d1c5ce77ee3178349281ad789703229ae06
treeb712284afebff56dd2e104242f4e6665aaf6c8e4
parent8ac27e2eca8e84dc13c1c57c48522c1252029e71
firewire: cdev: address handler input validation

Like before my commit 268236ce9ae585cc77f0b1668bd7bcfbba44e7e0,
fw_core_add_address_handler() does not align the address region now.
Instead the caller is required to pass valid parameters.

Since one of the callers of fw_core_add_address_handler() is the cdev
userspace interface, we now check for valid input.  If the client is
buggy, we give it a hint with -EINVAL.

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