diff options
author | Alexandre Courbot | 2016-01-25 10:44:23 +0100 |
---|---|---|
committer | Ben Skeggs | 2016-03-14 01:11:06 +0100 |
commit | 0529a46a7ae038761d2860b15c8d025cec448e88 (patch) | |
tree | ca17eca60c42e29778450a931afabad2515b45c4 /drivers/target/target_core_hba.c | |
parent | drm/nouveau/gr/gf100: use the nvkm_firmware functions (diff) | |
download | kernel-qcow2-linux-0529a46a7ae038761d2860b15c8d025cec448e88.tar.gz kernel-qcow2-linux-0529a46a7ae038761d2860b15c8d025cec448e88.tar.xz kernel-qcow2-linux-0529a46a7ae038761d2860b15c8d025cec448e88.zip |
drm/nouveau/device: call nvkm_device_fini if nvkm_device_init fails
nvkm_device_fini is never called if a failure occurs in
nvkm_device_init, even when unloading the module. This can lead to a
resources leak (one example is the Tegra interrupt which would never be
freed in that case). Fix this by calling nvkm_device_fini in
nvkm_device_init's failure path.
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/target/target_core_hba.c')
0 files changed, 0 insertions, 0 deletions