commit | adfbc1ff342ece2e482254bcc5381fadfffbbb89 | [log] [tgz] |
---|---|---|
author | Stephen M. Cameron <scameron@beardog.cce.hp.com> | Mon Jul 19 13:46:28 2010 -0500 |
committer | Jens Axboe <jaxboe@fusionio.com> | Sat Aug 07 18:52:30 2010 +0200 |
tree | aefa1482a22f0378a1397546595e7980fb4acf75 | |
parent | a6528d017234b483283274fbdd360f3541befe19 [diff] |
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 <scameron@beardog.cce.hp.com> Signed-off-by: Jens Axboe <jaxboe@fusionio.com>