Changeset 52c50c78 in rtems


Ignore:
Timestamp:
Feb 12, 2014, 8:44:57 PM (5 years ago)
Author:
Li Zefan <lizefan@…>
Branches:
master
Children:
d60c1665
Parents:
e650f4fc
git-author:
Li Zefan <lizefan@…> (02/12/14 20:44:57)
git-committer:
Sebastian Huber <sebastian.huber@…> (07/16/18 05:22:11)
Message:

jffs2: remove from wait queue after schedule()

@wait is a local variable, so if we don't remove it from the wait queue
list, later wake_up() may end up accessing invalid memory.

This was spotted by eyes.

Signed-off-by: Li Zefan <lizefan@…>
Cc: David Woodhouse <dwmw2@…>
Cc: Artem Bityutskiy <artem.bityutskiy@…>
Cc: <stable@…>
Signed-off-by: Andrew Morton <akpm@…>
Signed-off-by: Brian Norris <computersforpeace@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libfs/src/jffs2/src/nodemgmt.c

    re650f4fc r52c50c78  
    182182
    183183                                        schedule();
     184                                        remove_wait_queue(&c->erase_wait, &wait);
    184185                                } else
    185186                                        spin_unlock(&c->erase_completion_lock);
Note: See TracChangeset for help on using the changeset viewer.