diff options
| author | Pan Bian <[email protected]> | 2021-01-21 07:22:02 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2021-01-21 12:45:51 +0000 |
| commit | 97784481757fba7570121a70dd37ca74a29f50a8 (patch) | |
| tree | ccee7ca08a90a00af966d2a6a87d862b2dd32519 /drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c | |
| parent | Merge tag 'nvme-5.11-2020-01-21' of git://git.infradead.org/nvme into block-5.11 (diff) | |
| download | kernel-97784481757fba7570121a70dd37ca74a29f50a8.tar.gz kernel-97784481757fba7570121a70dd37ca74a29f50a8.zip | |
lightnvm: fix memory leak when submit fails
The allocated page is not released if error occurs in
nvm_submit_io_sync_raw(). __free_page() is moved ealier to avoid
possible memory leak issue.
Fixes: aff3fb18f957 ("lightnvm: move bad block and chunk state logic to core")
Signed-off-by: Pan Bian <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c')
0 files changed, 0 insertions, 0 deletions
