Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rw/4.4/mlc #2

Open
wants to merge 6 commits into
base: bb/4.4/mlc
Choose a base branch
from

Conversation

richardweinberger
Copy link
Contributor

My first pull request using github... :D

It can happen that a volume vanishes under us.

Signed-off-by: Richard Weinberger <[email protected]>
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 <[email protected]>
If one calles it with an empty ubi->free rb tree, yell.

Signed-off-by: Richard Weinberger <[email protected]>
Another location where the volume can be gone...

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

Signed-off-by: Richard Weinberger <[email protected]>
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 <[email protected]>
Reviewed-by: Richard Weinberger <[email protected]>
Signed-off-by: Boris Brezillon <[email protected]>
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