Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 2300b9d in mainline for uspace/lib/libdrv/generic/driver.c


Ignore:
Timestamp:
2010-04-30T08:29:42Z (12 years ago)
Author:
Lenka Trochtova <trochtova.lenka@…>
Branches:
lfn, master
Children:
dafe675
Parents:
7f8b581
Message:

Fixed a bug.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libdrv/generic/driver.c

    r7f8b581 r2300b9d  
    8181
    8282static void driver_irq_handler(ipc_callid_t iid, ipc_call_t *icall)
    83 {
     83{       
    8484        int id = (int)IPC_GET_METHOD(*icall);
    8585        interrupt_context_t *ctx = find_interrupt_context_by_id(&interrupt_contexts, id);
    86         (*ctx->handler)(ctx->dev, iid, icall); 
     86        if (NULL != ctx && NULL != ctx->handler) {
     87                (*ctx->handler)(ctx->dev, iid, icall);         
     88        }
    8789}
    8890
Note: See TracChangeset for help on using the changeset viewer.