mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@digeo.com>
To: "Prasanta Sadhukhan" <prasanta@tataelxsi.co.in>
Cc: linux-kernel@vger.kernel.org
Subject: Re: calling context of unregister_netdev
Date: Sat, 19 Apr 2003 14:58:23 -0700	[thread overview]
Message-ID: <20030419145823.4867d595.akpm@digeo.com> (raw)
In-Reply-To: <3EA14DD6.4B5983EA@tataelxsi.co.in>

"Prasanta Sadhukhan" <prasanta@tataelxsi.co.in> wrote:
>
> So my question is whether we can call unregister_netdev() function from
> interrupt context(i.e, in ISR process context)

No, you cannot.

This is a bug which occurs in multiple places in the pcmcia code.  usually it
is doing illegal things from within timer handlers.  In your case, within
hard IRQ context.

Your fix (using schedule_task()) is fine.  It is the preferred way to resolve
this bug.


      reply	other threads:[~2003-04-19 21:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-19 13:23 Prasanta Sadhukhan
2003-04-19 21:58 ` Andrew Morton [this message]

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=20030419145823.4867d595.akpm@digeo.com \
    --to=akpm@digeo.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=prasanta@tataelxsi.co.in \
    /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®