diff options
author | Johan Hovold <johan@kernel.org> | 2018-07-04 11:05:56 +0200 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2018-07-12 20:31:18 +0200 |
commit | 551757eb052986ec81cebcc6301cc1c4f8dca938 (patch) | |
tree | b42c957895447a9ebee31d986612c0db2d10df98 /drivers/hv | |
parent | rtc: omap: fix potential crash on power off (diff) | |
download | linux-551757eb052986ec81cebcc6301cc1c4f8dca938.tar.xz linux-551757eb052986ec81cebcc6301cc1c4f8dca938.zip |
rtc: omap: fix resource leak in registration error path
Make sure to deregister the pin controller in case rtc registration
fails.
Fixes: 57072758623f ("rtc: omap: switch to rtc_register_device")
Cc: stable <stable@vger.kernel.org> # 4.14
Cc: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/hv')
0 files changed, 0 insertions, 0 deletions