diff options
author | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2012-01-05 12:47:18 +0400 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2012-01-05 13:19:19 +0400 |
commit | e57e0d8e818512047fe379157c3f77f1b9fabffb (patch) | |
tree | 231ce6396d5c2b5ff40c6436bc713eb0c1e33ee7 /drivers/oprofile/cpu_buffer.h | |
parent | e801e128b2200c40a0ec236cf2330b2586b6e05a (diff) | |
download | linux-e57e0d8e818512047fe379157c3f77f1b9fabffb.tar.xz |
UBI: fix use-after-free on error path
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>
Cc: stable@kernel.org [v2.6.23+]
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Diffstat (limited to 'drivers/oprofile/cpu_buffer.h')
0 files changed, 0 insertions, 0 deletions