cciss: fix scatter gather cleanup problems
authorStephen M. Cameron <scameron@beardog.cce.hp.com>
Mon, 23 Nov 2009 08:31:48 +0000 (09:31 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Mon, 23 Nov 2009 08:31:48 +0000 (09:31 +0100)
commitd61c42690c6e2ff093a3d01338dad49f35b1e27b
treeb8c419f13c09f7f5cde0b85c3f11e1fe7635a3c8
parent87038c2d5bda2418fda8b1456a0ae81cc3ff5bd8
cciss: fix scatter gather cleanup problems

On driver unload, only free up the extra scatter gather data if they were
allocated in the first place (the controller supports it) and don't forget
to free up the sg_cmd_list array of pointers.

Signed-off-by: Don Brace <brace@beardog.cce.hp.com>
Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
drivers/block/cciss.c