Thread (22 messages) 22 messages, 6 authors, 2021-01-14

Re: [PATCH v6 01/11] firmware: raspberrypi: Keep count of all consumers

From: Stephen Boyd <sboyd@kernel.org>
Date: 2020-12-13 05:14:59
Also in: linux-arm-kernel, linux-clk, linux-devicetree, linux-gpio, linux-pwm, lkml

Quoting Nicolas Saenz Julienne (2020-12-11 08:47:50)
When unbinding the firmware device we need to make sure it has no
consumers left. Otherwise we'd leave them with a firmware handle
pointing at freed memory.

Keep a reference count of all consumers and introduce rpi_firmware_put()
which will permit automatically decrease the reference count upon
unbinding consumer drivers.

Suggested-by: Uwe Kleine-König <redacted>
Signed-off-by: Nicolas Saenz Julienne <redacted>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>

---
Reviewed-by: Stephen Boyd <sboyd@kernel.org>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help