diff options
| author | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2012-01-05 10:47:18 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@suse.de> | 2012-01-25 16:13:17 -0800 |
| commit | 50bc9144d4c0e15a6fcdc1b7a5accb7e2cd4aa11 (patch) | |
| tree | e81bd6dd405d9f7ea7648e9947afe6e7d59dc096 /include/linux | |
| parent | 73461014f2de68f1dbca13897af0feb77872b8f5 (diff) | |
UBI: fix use-after-free on error path
commit e57e0d8e818512047fe379157c3f77f1b9fabffb upstream.
When we fail to erase a PEB, we free the corresponding erase entry object,
but then re-schedule this object if the error code was something like -EAGAIN.
Obviously, it is a bug to use the object after we have freed it.
Reported-by: Emese Revfy <re.emese@gmail.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
