diff options
author | Daeseok Youn <daeseok.youn@gmail.com> | 2014-05-22 02:46:12 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-05-27 23:11:06 +0200 |
commit | ca3c61f358d8e5a4b2732d6aa81ac46f677e69f0 (patch) | |
tree | 067f59413cfd55aede6c0216018724ebd85194cf /drivers/leds | |
parent | w1: do not unlock unheld list_mutex in __w1_remove_master_device() (diff) | |
download | linux-ca3c61f358d8e5a4b2732d6aa81ac46f677e69f0.tar.xz linux-ca3c61f358d8e5a4b2732d6aa81ac46f677e69f0.zip |
drivers: uio_dmem_genirq: Fix memory leak in uio_dmem_genirq_probe()
When platform_get_irq() is failed after "priv" allocated,
it need to free "priv". But the label of bad0 doesn't try
to free about "priv". So this patch changes that lable to "bad1".
But "bad1" has pm_runtime_disable() call, this function should
be called when uio_register_device() is failed. So it is moved
into handling error for uio_register_device().
Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com>
Signed-off-by: Hans J. Koch <hjk@hansjkoch.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/leds')
0 files changed, 0 insertions, 0 deletions