lkml.org 
[lkml]   [2010]   [Feb]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] cciss: Make cciss_seq_show handle holes in the h->drv[] array.
On Thu, Feb 04 2010, Stephen M. Cameron wrote:
> From: Stephen M. Cameron <scameron@beardog.cce.hp.com>
>
> 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 <scameron@beardog.cce.hp.com>

Thanks Stephen, applied for 2.6.33. BTW, you want to put that stable cc
into the patch itself as well, then it'll get picked up automatically
when Linus merges it.

--
Jens Axboe



\
 
 \ /
  Last update: 2010-02-05 13:17    [from the cache]
©2003-2011 Jasper Spaans