aboutsummaryrefslogtreecommitdiffstats
path: root/lib/debugobjects.c
diff options
context:
space:
mode:
authorRob Herring <[email protected]>2011-09-14 16:31:37 +0000
committerThomas Gleixner <[email protected]>2011-09-20 10:16:22 +0000
commiteef24afb28561a5a9f4be8f8da97735b7e6a826f (patch)
tree0014317465c4aac43d40fe0cc7f1b269a5a5b95d /lib/debugobjects.c
parentirq: Add declaration of irq_domain_simple_ops to irqdomain.h (diff)
downloadkernel-eef24afb28561a5a9f4be8f8da97735b7e6a826f.tar.gz
kernel-eef24afb28561a5a9f4be8f8da97735b7e6a826f.zip
irq: Fix check for already initialized irq_domain in irq_domain_add
The sanity check in irq_domain_add() tests desc->irq_data != NULL or irq_data->domain != NULL. This prevents adding an irq_domain to a irq descriptor when irq_data exists, which true when the irq descriptor exists. This went unnoticed so far as the simple domain code did not enter this code path because domain->nr_irqs is always 0 for the simple domains. Split the check for irq_data == NULL out and have a separate warning for it. [ tglx: Made the check for irq_data == NULL separate ] Signed-off-by: Rob Herring <[email protected]> Cc: Grant Likely <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Thomas Gleixner <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions