Skip to content

Rw/4.4/mlc#2

Open
richardweinberger wants to merge 6 commits intobbrezillon:bb/4.4/mlcfrom
richardweinberger:rw/4.4/mlc
Open

Rw/4.4/mlc#2
richardweinberger wants to merge 6 commits intobbrezillon:bb/4.4/mlcfrom
richardweinberger:rw/4.4/mlc

Conversation

@richardweinberger
Copy link
Copy Markdown
Contributor

My first pull request using github... :D

Signed-off-by: Richard Weinberger <richard@nod.at>
It can happen that a volume vanishes under us.

Signed-off-by: Richard Weinberger <richard@nod.at>
If we call ubi_wl_get_peb with work sem help and no PEB are
available we have to give up.
Before this change we called find_mean_wl_entry() with an empty
ubi->free rb tree and faced protection fault or corrupted memory.

Signed-off-by: Richard Weinberger <richard@nod.at>
If one calles it with an empty ubi->free rb tree, yell.

Signed-off-by: Richard Weinberger <richard@nod.at>
Another location where the volume can be gone...

Signed-off-by: Richard Weinberger <richard@nod.at>
...how can it happen that clebs[0] and clebs[1] contain the same LEB?

Signed-off-by: Richard Weinberger <richard@nod.at>
bbrezillon pushed a commit that referenced this pull request Apr 20, 2016
fix the raw_buffer pointer double free issue found by coverify.

CID 18344 (#2 of 2): Double free (USE_AFTER_FREE)
3. double_free: Calling gpmi_alloc_dma_buffer frees pointer
this->raw_buffer which has already been freed

Signed-off-by: Han Xu <han.xu@nxp.com>
Reviewed-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants