From: Stephen M. Cameron Date: Mon, 19 Jul 2010 18:46:28 +0000 (-0500) Subject: cciss: sanitize max commands X-Git-Tag: v2.6.36-rc1~288^2~44 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=adfbc1ff342ece2e482254bcc5381fadfffbbb89;p=pandora-kernel.git cciss: sanitize max commands cciss: sanitize max commands Some controllers might try to tell us they support 0 commands in performant mode. This is a lie told by buggy firmware. We have to be wary of this lest we try to allocate a negative number of command blocks, which will be treated as unsigned, and get an out of memory condition. Signed-off-by: Stephen M. Cameron Signed-off-by: Jens Axboe --- Reading git-diff-tree failed