[PATCH] staging: erofs: fix to handle error path of erofs_vmap()

2019-03-11 Thread Chao Yu
From: Chao Yu erofs_vmap() wrapped vmap() and vm_map_ram() to return virtual continuous memory, but both of them can failed due to a lot of reason, previously, erofs_vmap()'s callers didn't handle them, which can potentially cause NULL pointer access, fix it. Fixes: 3883a79abd02 ("staging:

Re: [PATCH] staging: erofs: fix to handle error path of erofs_vmap()

2019-03-11 Thread Gao Xiang
On 2019/3/11 17:00, Chao Yu wrote: > erofs_vmap() wrapped vmap() and vm_map_ram() to return virtual > continuous memory, but both of them can failed due to a lot of > reason, previously, erofs_vmap()'s callers didn't handle them, > which can potentially cause NULL pointer access, fix it. > >

[PATCH] staging: erofs: fix to handle error path of erofs_vmap()

2019-03-11 Thread Chao Yu
erofs_vmap() wrapped vmap() and vm_map_ram() to return virtual continuous memory, but both of them can failed due to a lot of reason, previously, erofs_vmap()'s callers didn't handle them, which can potentially cause NULL pointer access, fix it. Signed-off-by: Gao Xiang Signed-off-by: Chao Yu