Files
linux/drivers/misc
Johan Hovold 16dd10970f misc: sram: fix resource leaks in probe error path
commit f294d00961 upstream.

Make sure to disable clocks and deregister any exported partitions
before returning on late probe errors.

Note that since commit ee895ccdf7 ("misc: sram: fix enabled clock leak
on error path"), partitions are deliberately exported before enabling
the clock so we stick to that logic here. A follow up patch will address
this.

Cc: stable <stable@vger.kernel.org>     # 4.9
Cc: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-08-22 07:44:55 +02:00
..
2017-11-15 18:21:04 -08:00
2018-03-27 09:51:22 +02:00
2018-03-28 12:27:35 +02:00
2017-08-28 16:55:48 +02:00
2018-03-06 19:18:55 -08:00