public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Anton Vorontsov <cbou@mail.ru>
To: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Cc: Andrew Morton <akpm@osdl.org>, linux-kernel@vger.kernel.org
Subject: Re: 2.6.19-rc2-mm2
Date: Fri, 20 Oct 2006 17:32:05 +0400	[thread overview]
Message-ID: <20061020133204.GA25204@localhost> (raw)
In-Reply-To: <200610201339.49190.m.kozlowski@tuxland.pl>

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

Hi,

On Fri, Oct 20, 2006 at 01:39:49PM +0200, Mariusz Kozlowski wrote:
> Hello, 
> 
> 	I installed 2.6.19-rc2-mm2 without kernel debugging options enabled first. 
> The output below is what I saw when the kernel started. Then I enabled 
> debugging and system hangs with oops with no trace in the logs. It is not 
> easily repeatable though. It happens from time to time.
> 

Is that patch helps?

> Regards,
> 
> 	Mariusz Kozlowski

-- Anton (irc: bd2)

[-- Attachment #2: pcmcia-fix.patch --]
[-- Type: text/plain, Size: 861 bytes --]

diff --git a/drivers/pcmcia/pcmcia_ioctl.c b/drivers/pcmcia/pcmcia_ioctl.c
index 9ad18e6..72d92b4 100644
--- a/drivers/pcmcia/pcmcia_ioctl.c
+++ b/drivers/pcmcia/pcmcia_ioctl.c
@@ -601,6 +601,10 @@ static int ds_ioctl(struct inode * inode
 	    ret = CS_BAD_ARGS;
 	else {
 	    struct pcmcia_device *p_dev = get_pcmcia_device(s, buf->config.Function);
+	    if (!p_dev) {
+		    err = -ENODEV;
+		    break;
+	    }
 	    ret = pccard_get_configuration_info(s, p_dev, &buf->config);
 	    pcmcia_put_dev(p_dev);
 	}
@@ -632,6 +636,10 @@ static int ds_ioctl(struct inode * inode
 		    ret = CS_BAD_ARGS;
 	    else {
 		    struct pcmcia_device *p_dev = get_pcmcia_device(s, buf->status.Function);
+		    if (!p_dev) {
+			    err = -ENODEV;
+			    break;
+		    }
 		    ret = pccard_get_status(s, p_dev, &buf->status);
 		    pcmcia_put_dev(p_dev);
 	    }

  reply	other threads:[~2006-10-20 13:30 UTC|newest]

Thread overview: 51+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-20  8:56 2.6.19-rc2-mm2 Andrew Morton
2006-10-20  9:34 ` 2.6.19-rc2-mm2 Cornelia Huck
2006-10-20 13:19   ` 2.6.19-rc2-mm2 Alan Cox
2006-10-20 11:39 ` 2.6.19-rc2-mm2 Mariusz Kozlowski
2006-10-20 13:32   ` Anton Vorontsov [this message]
2006-10-20 14:57     ` 2.6.19-rc2-mm2 Mariusz Kozlowski
2006-10-20 16:19   ` 2.6.19-rc2-mm2 Andrew Morton
2006-10-20 16:54     ` 2.6.19-rc2-mm2 Mariusz Kozlowski
2006-10-20 17:25       ` 2.6.19-rc2-mm2 Andrew Morton
2006-10-20 22:37         ` 2.6.19-rc2-mm2 Matthew Frost
2006-10-21  0:16           ` 2.6.19-rc2-mm2 Andi Kleen
2006-10-21  0:50             ` 2.6.19-rc2-mm2 Greg KH
2006-10-21  2:13               ` 2.6.19-rc2-mm2 Andi Kleen
2006-10-21  3:55                 ` 2.6.19-rc2-mm2 Greg KH
2006-10-22  0:34             ` 2.6.19-rc2-mm2 Matthew Frost
2006-10-21  0:48         ` 2.6.19-rc2-mm2 Greg KH
2006-10-23  7:58         ` 2.6.19-rc2-mm2 Cornelia Huck
2006-10-24  7:40           ` 2.6.19-rc2-mm2 Greg KH
2006-10-20 11:59 ` 2.6.19-rc2-mm2 Gabriel C
2006-10-20 12:04   ` 2.6.19-rc2-mm2 Jiri Kosina
2006-10-20 12:33     ` 2.6.19-rc2-mm2 Gabriel C
2006-10-20 22:43     ` 2.6.19-rc2-mm2 Andrew Morton
2006-10-23  3:29       ` 2.6.19-rc2-mm2 Mauro Carvalho Chehab
2006-10-20 15:34 ` [PATCH 2.6.19-rc2-mm2] fix tty_ioctl powerpc build Hugh Dickins
2006-10-20 17:59   ` Alan Cox
2006-10-20 19:52   ` Andy Whitcroft
2006-10-20 15:54 ` 2.6.19-rc2-mm2 Martin J. Bligh
2006-10-20 16:30   ` 2.6.19-rc2-mm2 Badari Pulavarty
2006-10-20 17:31     ` 2.6.19-rc2-mm2 Andy Whitcroft
2006-10-22  2:16   ` 2.6.19-rc2-mm2 Martin J. Bligh
2006-10-22  3:15     ` 2.6.19-rc2-mm2 Dave Jones
2006-10-22  3:24     ` 2.6.19-rc2-mm2 Randy Dunlap
2006-10-22 22:18     ` 2.6.19-rc2-mm2 Andy Whitcroft
2006-10-21  0:24 ` 2.6.19-rc2-mm2 J.A. Magallón
2006-10-21  0:37   ` 2.6.19-rc2-mm2 Jiri Kosina
2006-10-21  0:41   ` 2.6.19-rc2-mm2 Randy Dunlap
2006-10-21 17:30 ` 2.6.19-rc2-mm2: reproducible hang on shutdown on i386 Rafael J. Wysocki
2006-10-23 14:43   ` Rafael J. Wysocki
2006-10-23 17:34     ` Andrew Morton
2006-10-23 21:00       ` Rafael J. Wysocki
2006-10-22 13:32 ` [Nasty crash on boot] was Re: 2.6.19-rc2-mm2 Reuben Farrelly
2006-10-22 18:13   ` Andrew Morton
2006-10-22 22:37     ` Andi Kleen
2006-10-23 20:54 ` 2.6.19-rc2-mm2 Magnus Määttä
2006-10-23 21:04   ` 2.6.19-rc2-mm2 Andrew Morton
2006-10-23 21:22     ` 2.6.19-rc2-mm2 Magnus Määttä
2006-10-24  8:04 ` WARNING: Do not use with EFI-based (e.g. IA64) systems. Bootloader may get eaten Mel Gorman
2006-10-26  6:11 ` 2.6.19-rc2-mm2 Joseph Fannin
2006-10-28  3:18 ` 2.6.19-rc2-mm2 - process_session-helper breaks /sbin/killall5 Valdis.Kletnieks
2006-10-28  4:47   ` Andrew Morton
2006-10-28 17:53     ` Valdis.Kletnieks

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=20061020133204.GA25204@localhost \
    --to=cbou@mail.ru \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=m.kozlowski@tuxland.pl \
    /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