diff options
| author | Brian Norris <[email protected]> | 2017-05-02 00:04:53 +0000 |
|---|---|---|
| committer | Boris Brezillon <[email protected]> | 2017-05-22 07:42:29 +0000 |
| commit | 787710492911e21148975e1d1914c7409fb32c7e (patch) | |
| tree | 643531c181864b2fd26246113b4b48283e3c6817 /drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c | |
| parent | mtd: nand: drop unneeded module.h include (diff) | |
| download | kernel-787710492911e21148975e1d1914c7409fb32c7e.tar.gz kernel-787710492911e21148975e1d1914c7409fb32c7e.zip | |
mtd: nand: free vendor-specific resources in init failure paths
If we fail any time after calling nand_detect(), then we don't call the
vendor-specific ->cleanup() callback, and we'll leak any resources the
vendor-specific code might have allocated.
Mark the "fix" against the first commit that started allocating anything
in ->init().
Fixes: 626994e07480 ("mtd: nand: hynix: Add read-retry support for 1x nm MLC NANDs")
Signed-off-by: Brian Norris <[email protected]>
Signed-off-by: Boris Brezillon <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c')
0 files changed, 0 insertions, 0 deletions
