lkml.org 
[lkml]   [2003]   [Apr]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: calling context of unregister_netdev
    "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.

    -
    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/

    \
     
     \ /
      Last update: 2005-03-22 13:34    [W:0.022 / U:29.324 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site