Re: [bug] drivers/char/serial.c causes NULL ptr deref. OOPS w/

David Ford (david@kalifornia.com)
Mon, 05 Jun 2000 01:16:55 -0700


This is a multi-part message in MIME format.
--------------5F22AD833570592708916AA1
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Andrey Panin wrote:

> > if (!res)
> > return 0;
> >
> if (res->next)
> return 1;
>
> Did you encounter ISA PnP device without resources ???!!!
> Very interesting, post me a copy of /proc/isapnp file, please.
>
> This sanity check seems ok, except that it should return 1, indicating
> that device guessing is failed.

Here's the file, how is this instead:

if (!res || res->next)
return 1;

-d

--
"The difference between 'involvement' and 'commitment' is like an
eggs-and-ham breakfast: the chicken was 'involved' - the pig was
'committed'."

--------------5F22AD833570592708916AA1 Content-Type: text/plain; charset=us-ascii; name="proc.isapnp" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="proc.isapnp"

Card 1 'OPT0931:OPTi Audio 16' PnP version 1.0 Logical device 0 'OPTffff:AUX0' Device is active Logical device 1 'OPT9310:OPTi Audio 16' Device is not active Active port ,0xe00 Resources 0 Priority acceptable Port 0x534-0x608, align 0x3, size 0x4, 16-bit address decoding Port 0x380-0x3f0, align 0xf, size 0xc, 16-bit address decoding Port 0x220-0x240, align 0x1f, size 0x10, 16-bit address decoding Port 0xe0c-0xffc, align 0x3, size 0x4, 16-bit address decoding IRQ 5,7,10 High-Edge DMA 0,1,3 8-bit byte-count type-A DMA 0,1,3,5,6 8-bit&16-bit byte-count word-count type-A Alternate resources 0:1 Priority acceptable Port 0x534-0xff0, align 0x3, size 0x4, 16-bit address decoding Port 0x380-0x3f0, align 0xf, size 0xc, 16-bit address decoding Port 0x220-0x240, align 0x1f, size 0x10, 16-bit address decoding Port 0xe0c-0xffc, align 0x3, size 0x4, 16-bit address decoding IRQ 5,7,2/9,10,11 High-Edge DMA 0,1,3,5,6 8-bit&16-bit byte-count word-count type-A DMA 0,1,3,5,6 8-bit&16-bit byte-count word-count type-A Alternate resources 0:2 Priority acceptable Port 0x534-0x608, align 0x3, size 0x4, 16-bit address decoding Port 0x380-0x3f0, align 0xf, size 0xc, 16-bit address decoding Port 0x220-0x240, align 0x1f, size 0x10, 16-bit address decoding Port 0xe0c-0xffc, align 0x3, size 0x4, 16-bit address decoding IRQ 5,7,10 High-Edge DMA 0,1,3 8-bit byte-count type-A DMA 0,1,3 8-bit byte-count type-A Alternate resources 0:3 Priority acceptable Port 0x534-0xff0, align 0x3, size 0x4, 16-bit address decoding Port 0x380-0x3f0, align 0xf, size 0xc, 16-bit address decoding Port 0x220-0x240, align 0x1f, size 0x10, 16-bit address decoding Port 0xe0c-0xffc, align 0x3, size 0x4, 16-bit address decoding IRQ 5,7,2/9,10,11 High-Edge DMA 0,1,3 8-bit byte-count type-A DMA 0,1,3 8-bit byte-count type-A Alternate resources 0:4 Priority acceptable Port 0x534-0xff0, align 0x3, size 0x4, 16-bit address decoding Port 0x380-0x3f0, align 0xf, size 0xc, 16-bit address decoding Port 0x220-0x240, align 0x1f, size 0x10, 16-bit address decoding Port 0xe0c-0xffc, align 0x3, size 0x4, 16-bit address decoding IRQ 5,7,2/9,10,11 High-Edge DMA 0,1,3 8-bit byte-count type-A Logical device 2 'OPT0001:Game Port' Device is not active Resources 0 Priority preferred Port 0x200-0x20f, align 0x0, size 0x1, 16-bit address decoding Logical device 3 'OPT0002:MPU401' Device is not active Resources 0 Priority preferred Port 0x300-0x360, align 0xf, size 0x2, 16-bit address decoding IRQ 5,7,2/9,10,11 High-Edge

--------------5F22AD833570592708916AA1--

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/