Skip to content

Commit e9ebc21

Browse files
committed
Merge branch 'irq-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull irq fixes from Ingo Molnar: "An irqchip driver fix and a memory (over-)allocation fix" * 'irq-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: irqchip/irq-mvebu-sei: Fix a NULL vs IS_ERR() bug in probe function irq/matrix: Fix memory overallocation
2 parents d2ff0ff + 3424243 commit e9ebc21

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

drivers/irqchip/irq-mvebu-sei.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -384,9 +384,9 @@ static int mvebu_sei_probe(struct platform_device *pdev)
384384

385385
sei->res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
386386
sei->base = devm_ioremap_resource(sei->dev, sei->res);
387-
if (!sei->base) {
387+
if (IS_ERR(sei->base)) {
388388
dev_err(sei->dev, "Failed to remap SEI resource\n");
389-
return -ENODEV;
389+
return PTR_ERR(sei->base);
390390
}
391391

392392
/* Retrieve the SEI capabilities with the interrupt ranges */

kernel/irq/matrix.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#include <linux/cpu.h>
99
#include <linux/irq.h>
1010

11-
#define IRQ_MATRIX_SIZE (BITS_TO_LONGS(IRQ_MATRIX_BITS) * sizeof(unsigned long))
11+
#define IRQ_MATRIX_SIZE (BITS_TO_LONGS(IRQ_MATRIX_BITS))
1212

1313
struct cpumap {
1414
unsigned int available;

0 commit comments

Comments
 (0)