From: Stefan Richter Date: Fri, 5 Dec 2008 21:44:42 +0000 (+0100) Subject: firewire: cdev: tcodes input validation X-Git-Tag: v2.6.30-rc1~644^2~48 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1f3125af8ed7410cc0ebcc0acd59bbfc1ae0057a;p=pandora-kernel.git firewire: cdev: tcodes input validation The behaviour of fw-transaction.c::fw_send_request is ill-defined for any other tcodes than read/ write/ lock request tcodes. Therefore prevent requests with wrong tcodes from entering the transaction layer. Maybe fw_send_request should check them itself, but I am not inclined to change it and fw_fill_request from void-valued functions to ones which return error codes and pass those up. Besides, maybe fw_send_request is going to support one more tcode than ioctl_send_request in the future (TCODE_STREAM_DATA). Signed-off-by: Stefan Richter --- Reading git-diff-tree failed