diff options
author | Wei Yongjun <weiyj.lk@gmail.com> | 2016-08-13 08:57:23 +0000 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2016-08-30 12:04:16 +0300 |
commit | d4b9efa3b9aa7d4c0e946ecb634154132402158f (patch) | |
tree | 66f696030cb88283f75493afe718def4affa5acb | |
parent | 43715c9e01eb43050984352f27cae2a65b635f03 (diff) | |
download | op-kernel-dev-d4b9efa3b9aa7d4c0e946ecb634154132402158f.zip op-kernel-dev-d4b9efa3b9aa7d4c0e946ecb634154132402158f.tar.gz |
video: fbdev: pxafb: add missing of_node_put() in of_get_pxafb_mode_info()
This node pointer is returned by of_graph_get_next_endpoint() with
refcount incremented in this function. of_node_put() on it before
exitting this function.
Found by Coccinelle.
Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com>
Acked-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
-rw-r--r-- | drivers/video/fbdev/pxafb.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/video/fbdev/pxafb.c b/drivers/video/fbdev/pxafb.c index ed41fdb..ef73f14 100644 --- a/drivers/video/fbdev/pxafb.c +++ b/drivers/video/fbdev/pxafb.c @@ -2186,6 +2186,7 @@ static int of_get_pxafb_mode_info(struct device *dev, ret = of_property_read_u32(np, "bus-width", &bus_width); if (ret) { dev_err(dev, "no bus-width specified: %d\n", ret); + of_node_put(np); return ret; } |