Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

of: irq: Fix interrupt-map entry matching

This patch fixes interrupt-map entry matching code to properly match all
specifier cells with interrupt map entries.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
Tested-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Rob Herring <rob.herring@calxeda.com>

authored by

Tomasz Figa and committed by
Rob Herring
74dac2ed b5480950

+1 -1
+1 -1
drivers/of/irq.c
··· 199 199 /* Compare specifiers */ 200 200 match = 1; 201 201 for (i = 0; i < (addrsize + intsize); i++, imaplen--) 202 - match = !((match_array[i] ^ *imap++) & imask[i]); 202 + match &= !((match_array[i] ^ *imap++) & imask[i]); 203 203 204 204 pr_debug(" -> match=%d (imaplen=%d)\n", match, imaplen); 205 205