summaryrefslogtreecommitdiff
path: root/fs/qnx6
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2018-07-03 12:05:47 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-07-06 16:48:15 +0200
commitf294d00961d1d869ecffa60e280eeeee1ccf9a49 (patch)
tree5b832d2f3b5acce75c164b63a9276955c917518d /fs/qnx6
parent3cfaeb33530592b02b2ceb76b379364c55ca612e (diff)
misc: sram: fix resource leaks in probe error path
Make sure to disable clocks and deregister any exported partitions before returning on late probe errors. Note that since commit ee895ccdf776 ("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. Fixes: 2ae2e28852f2 ("misc: sram: add Atmel securam support") 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>
Diffstat (limited to 'fs/qnx6')
0 files changed, 0 insertions, 0 deletions