diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-04-04 15:14:44 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-04-04 15:14:44 -0400 |
commit | db217dece3003df0841bacf9556b5c06aa097dae (patch) | |
tree | 08612e7696c04c4d8fc2207c3ccf2356f945d230 /drivers/serial | |
parent | 8ce42c8b7fdf4fc008a6fc7349beb8f4dd5cb774 (diff) | |
parent | bdd32ce95f79fb5cc964cd789d7ae4500bba7c6f (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-2.6:
sunxvr500: Ignore secondary output PCI devices.
sparc64: Implement perf_arch_fetch_caller_regs
sparc64: Update defconfig.
sparc64: Fix array size reported by vmemmap_populate()
sparc: Fix regset register window handling.
drivers/serial/sunsu.c: Correct use after free
Diffstat (limited to 'drivers/serial')
-rw-r--r-- | drivers/serial/sunsu.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/serial/sunsu.c b/drivers/serial/sunsu.c index 170d3d68c8f0..cbcfb1885f79 100644 --- a/drivers/serial/sunsu.c +++ b/drivers/serial/sunsu.c | |||
@@ -1453,8 +1453,10 @@ static int __devinit su_probe(struct of_device *op, const struct of_device_id *m | |||
1453 | if (up->su_type == SU_PORT_KBD || up->su_type == SU_PORT_MS) { | 1453 | if (up->su_type == SU_PORT_KBD || up->su_type == SU_PORT_MS) { |
1454 | err = sunsu_kbd_ms_init(up); | 1454 | err = sunsu_kbd_ms_init(up); |
1455 | if (err) { | 1455 | if (err) { |
1456 | of_iounmap(&op->resource[0], | ||
1457 | up->port.membase, up->reg_size); | ||
1456 | kfree(up); | 1458 | kfree(up); |
1457 | goto out_unmap; | 1459 | return err; |
1458 | } | 1460 | } |
1459 | dev_set_drvdata(&op->dev, up); | 1461 | dev_set_drvdata(&op->dev, up); |
1460 | 1462 | ||