From: Stephen M. Cameron Date: Fri, 5 Feb 2010 12:14:04 +0000 (+0100) Subject: cciss: Make cciss_seq_show handle holes in the h->drv[] array X-Git-Tag: v2.6.33-rc8~9^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=531c2dc70d339c5dfa8c3eb628c3459dc6f3a075;p=pandora-kernel.git cciss: Make cciss_seq_show handle holes in the h->drv[] array It is possible (and expected) for there to be holes in the h->drv[] array, that is, some elements may be NULL pointers. cciss_seq_show needs to be made aware of this possibility to avoid an Oops. To reproduce the Oops which this fixes: 1) Create two "arrays" in the Array Configuratino Utility and several logical drives on each array. 2) cat /proc/driver/cciss/cciss* in an infinite loop 3) delete some of the logical drives in the first "array." Signed-off-by: Stephen M. Cameron Cc: stable@kernel.org Signed-off-by: Jens Axboe --- Reading git-diff-tree failed