mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
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 <[email protected]> Acked-by: Robert Jarzmik <[email protected]> Signed-off-by: Tomi Valkeinen <[email protected]>
This commit is contained in:
parent
43715c9e01
commit
d4b9efa3b9
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue