]> git.baikalelectronics.ru Git - kernel.git/commit
cciss: fix cciss_revalidate panic
authorStephen M. Cameron <scameron@beardog.cce.hp.com>
Fri, 17 Dec 2010 08:01:37 +0000 (09:01 +0100)
committerJens Axboe <jaxboe@fusionio.com>
Fri, 17 Dec 2010 08:01:37 +0000 (09:01 +0100)
commitd08dffcb003b5be062ba1f20547a13d069ff3cdf
tree3cbd89861a75d494a104db7d8d129eecfb086782
parent7de5d18c2719e984b51e6087da7c37993daa3b6b
cciss: fix cciss_revalidate panic

If you delete a logical drive, and then run BLKRRPART (e.g. via fdisk)
on a logical drive which is "after" the deleted logical drive in the h->drv[]
array, then cciss_revalidate panics because it will access the null pointer
h->drv[x] when x hits the deleted drive.

Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com>
Cc: stable@kernel.org
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
drivers/block/cciss.c