From: Stefan Richter Date: Sun, 1 Jul 2007 11:56:03 +0000 (+0200) Subject: firewire: fw-sbp2: add a boundary check X-Git-Tag: v2.6.23-rc1~1199^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=332ef3310bc37ff29fd4382d6dfb38a787078091;p=pandora-kernel.git firewire: fw-sbp2: add a boundary check Add rudimentary check for the case that the page table overflows due to merging of s/g elements by the IOMMU. This would have lead to overwriting of arbitrary memory. After this change I expect that an offending command will be unsuccessfully retried until the scsi_device is taken offline by SCSI core. It's a border case and not worth to implement a recovery strategy. Signed-off-by: Stefan Richter Acked-by: Kristian Høgsberg --- Reading git-diff-tree failed