mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andre Hedrick <andre@linux-ide.org>
To: "Jörn Engel" <joern@wohnheim.fh-wedel.de>
Cc: linux-kernel@vger.kernel.org, Alan Cox <alan@lxorguk.ukuu.org.uk>
Subject: [PATCH] ide-cd-typo.patch (Re: Linux 2.4.19-pre3-ac5)
Date: Fri, 22 Mar 2002 01:14:14 -0800 (PST)	[thread overview]
Message-ID: <Pine.LNX.4.10.10203220109130.9319-200000@master.linux-ide.org> (raw)
In-Reply-To: <20020322095628.A28751@wohnheim.fh-wedel.de>

[-- Attachment #1: Type: text/plain, Size: 1202 bytes --]


Goto Line 790 in ide-cd.c and manually edit it.

But since you asked for a patch here is one.

Cheers,

Andre Hedrick
LAD Storage Consulting Group


On Fri, 22 Mar 2002, Jörn Engel wrote:

> Hi!
> 
> > kernel BUG at ide-cd.c:790!
> > invalid operand: 0000
> 
> The code appears to be too paranoid here. In case noone else submitted
> a patch yet, here is mine.
> Apply with patch -p0.
> 
> Jörn
> 
> -- 
> Measure. Don't tune for speed until you've measured, and even then
> don't unless one part of the code overwhelms the rest.
> -- Rob Pike
> 
> --- drivers/ide/ide-cd.c	Fri Mar 22 09:48:42 2002
> +++ drivers/ide/ide-cd.c.new	Fri Mar 22 09:52:59 2002
> @@ -786,9 +786,6 @@
>  			return startstop;
>  	}
>  
> -	if (HWGROUP(drive)->handler == NULL)	/* paranoia check */
> -		BUG();
> -
>  	/* Arm the interrupt handler. */
>  	ide_set_handler (drive, handler, timeout, cdrom_timer_expiry);
>  
> -
> 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/
> 

[-- Attachment #2: Type: text/plain, Size: 343 bytes --]

--- linux/drivers/ide/ide-cd.c.orig	Fri Mar 22 01:11:51 2002
+++ linux/drivers/ide/ide-cd.c	Fri Mar 22 01:11:18 2002
@@ -786,7 +786,7 @@
 			return startstop;
 	}
 
-	if (HWGROUP(drive)->handler == NULL)	/* paranoia check */
+	if (HWGROUP(drive)->handler != NULL)	/* paranoia check */
 		BUG();
 
 	/* Arm the interrupt handler. */

  parent reply	other threads:[~2002-03-22  9:15 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-21 23:08 Linux 2.4.19-pre3-ac5 rwhron
2002-03-22  1:13 ` Adam Kropelin
2002-03-22  8:56   ` Jörn Engel
2002-03-22  8:56     ` Zwane Mwaikambo
2002-03-22  9:14     ` Andre Hedrick [this message]
2002-03-22  9:20       ` [PATCH] ide-cd-typo.patch (Re: Linux 2.4.19-pre3-ac5) Jörn Engel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.10.10203220109130.9319-200000@master.linux-ide.org \
    --to=andre@linux-ide.org \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=joern@wohnheim.fh-wedel.de \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®