Re: fr1-2.16 patch for 2.6.10 kernel
[email protected] (Peter T. Breuer)
| Newsgroups | gmane.linux.enbd.general |
|---|---|
| Message-ID | <[email protected]> |
In article <[email protected]> you wrote: > > raid1 1046: ** mddev=f7fc8480 rdev=f7ff9680 mirror=0 > > Unable to handle kernel NULL pointer dereference at virtual address > > 00000004 > > printing eip: > > f88a53ec > > *pde = 00000000 > > Oops: 0000 [#1] > > > > it's here : > > > > #ifdef CONFIG_MD_FR1 > > /* > > * allow a disk which has only been set faulty but not > > * removed yet to be reinserted, thus triggering a hot > > * repair. > > */ > > printk(KERN_INFO "raid1 %d: ** mddev=%p rdev=%p mirror=%d\n", > > __LINE__, mddev, rdev, mirror); > > if ( !(p=conf->mirrors+mirror)->rdev > > || p->rdev == rdev > > || p->rdev->bdev->bd_inode->i_rdev == > > rdev->bdev->bd_inode->i_rdev) { > > > > I'm going to expand this test to find exactly where is the problem.. > > it's p->rdev. You mean p->rdev is NULL? But that's not a problem. Is p NULL? That would be a problem! p is &conf->mirrors[mirror]. That can't be null. p->rdev can be null, but that's cought by the first term in the test. Can you bemore explicit? (many thanks!) Peter