Re: cciss updates for 2.4.24-pre1, 1 of 2
From: Jens Axboe
Date: Wed Dec 17 2003 - 17:51:31 EST
On Tue, Dec 16 2003, mikem@xxxxxxxxxxxxxxxxxxxxxxx wrote:
> Under certain conditions if the cciss driver fails to load the pointer to
> the hba may be null when trying to free the I/O memory. This patch fixes
> that problem and removes a no longer valid comment.
> This is #1 of 2 and should be applied first. Please consider this patch
> for inclusion in the 2.4.24 kernel.
>
> Thanks,
> mikem
> mike.miller@xxxxxx
> ------------------------------------------------------------------------------
> diff -burN lx2424pre1.orig/drivers/block/cciss.c lx2424pre1/drivers/block/cciss.c
> --- lx2424pre1.orig/drivers/block/cciss.c 2003-11-28 12:26:19.000000000 -0600
> +++ lx2424pre1/drivers/block/cciss.c 2003-12-16 17:25:50.000000000 -0600
> @@ -2612,7 +2612,6 @@
>
> /* get the address index number */
> cfg_base_addr = readl(c->vaddr + SA5_CTCFG_OFFSET);
> - /* I am not prepared to deal with a 64 bit address value */
> cfg_base_addr &= (__u32) 0x0000ffff;
> #ifdef CCISS_DEBUG
> printk("cfg base address = %x\n", cfg_base_addr);
> @@ -2624,7 +2623,7 @@
> #endif /* CCISS_DEBUG */
> if (cfg_base_addr_index == -1) {
> printk(KERN_WARNING "cciss: Cannot find cfg_base_addr_index\n");
> - release_io_mem(hba[i]);
> + release_io_mem(c);
> return -1;
> }
Looks fine to apply.
--
Jens Axboe
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/