diff options
| author | Geert Uytterhoeven <[email protected]> | 2016-10-13 14:05:36 +0000 |
|---|---|---|
| committer | Richard Weinberger <[email protected]> | 2016-10-19 22:06:06 +0000 |
| commit | 884a3b647809cb31cf6bd948f814e93753b38502 (patch) | |
| tree | 1cc3f6042d9626a668b3f4658ec405c6c540b6eb /drivers/gpu/drm/amd/amdgpu/amdgpu_test.c | |
| parent | ubi: fix swapped arguments to call to ubi_alloc_aeb (diff) | |
| download | kernel-884a3b647809cb31cf6bd948f814e93753b38502.tar.gz kernel-884a3b647809cb31cf6bd948f814e93753b38502.zip | |
UBI: Fix crash in try_recover_peb()
drivers/mtd/ubi/eba.c: In function ‘try_recover_peb’:
drivers/mtd/ubi/eba.c:744: warning: ‘vid_hdr’ is used uninitialized in this function
The pointer vid_hdr is indeed not initialized, leading to a crash when
it is dereferenced.
Fix this by obtaining the pointer from the VID buffer, like is done
everywhere else.
Fixes: 3291b52f9ff0acc8 ("UBI: introduce the VID buffer concept")
Signed-off-by: Geert Uytterhoeven <[email protected]>
Reviewed-by: Boris Brezillon <[email protected]>
Signed-off-by: Richard Weinberger <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_test.c')
0 files changed, 0 insertions, 0 deletions
