projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cdd86b2
)
serial: mxs-auart: put the device in the error path
author
Huang Shijie
<b32955@freescale.com>
Tue, 11 Sep 2012 07:30:30 +0000
(15:30 +0800)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Tue, 11 Sep 2012 19:21:33 +0000
(12:21 -0700)
The mxs_auart_probe() gets the device by the get_device().
So we should put the device in the error path to balance the
device's reference counter.
Signed-off-by: Huang Shijie <b32955@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/mxs-auart.c
patch
|
blob
|
history
diff --git
a/drivers/tty/serial/mxs-auart.c
b/drivers/tty/serial/mxs-auart.c
index 68984136bfb18a11a38a342a78938f4edf880875..6db3baa39a976ec684716623d1d21251eb38b61e 100644
(file)
--- a/
drivers/tty/serial/mxs-auart.c
+++ b/
drivers/tty/serial/mxs-auart.c
@@
-781,6
+781,7
@@
out_free_irq:
auart_port[pdev->id] = NULL;
free_irq(s->irq, s);
out_free_clk:
+ put_device(s->dev);
clk_put(s->clk);
out_free:
kfree(s);