Re: kernel 2.4.6 segfault in scsi sr.c

From: pazke@orbita1.ru
Date: Thu Jul 19 2001 - 03:28:26 EST


On Thu, Jul 19, 2001 at 09:57:50AM +0200, Martin Vogt wrote:
>
>
> In line 604 begins a switch statement:
>
> switch (sector_size) {
> case 0:

WILD GUESS: why not insert 'case 2336:' here ?

> case 2340:
> case 2352:
> sector_size = 2048;
> /* fall through */
> case 2048:
> scsi_CDs[i].capacity *= 4;
> /* fall through */
> case 512:
> break;
> default:
> kernel message --> printk("sr%d: unsupported sector size %d.\n",

-- 
Andrey Panin            | Embedded systems software engineer
pazke@orbita1.ru        | PGP key: http://www.orbita1.ru/~pazke/AndreyPanin.asc


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



This archive was generated by hypermail 2b29 : Mon Jul 23 2001 - 21:00:11 EST