Message ID | 4DF266B6.6090303@selfish.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/kernel/irq/chip.c b/kernel/irq/chip.c index d5a3009..25e446d 100644 --- a/kernel/irq/chip.c +++ b/kernel/irq/chip.c @@ -123,6 +123,10 @@ int irq_set_chip_data(unsigned int irq, void *data) if (!desc) return -EINVAL; + + BUG_ON(data && desc->irq_data.chip_data && + data != desc->irq_data.chip_data); + desc->irq_data.chip_data = data; irq_put_desc_unlock(desc, flags); return 0;