diff options
author | NeilBrown <neilb@suse.de> | 2013-07-24 07:37:42 +0200 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2013-07-25 08:46:53 +0200 |
commit | 0eb25bb027a100f5a9df8991f2f628e7d851bc1e (patch) | |
tree | 3e00b7a00db585cf166899506d5fda04ab06a17e /drivers/md/raid5.h | |
parent | md/raid1: fix bio handling problems in process_checks() (diff) | |
download | linux-0eb25bb027a100f5a9df8991f2f628e7d851bc1e.tar.xz linux-0eb25bb027a100f5a9df8991f2f628e7d851bc1e.zip |
md/raid10: remove use-after-free bug.
We always need to be careful when calling generic_make_request, as it
can start a chain of events which might free something that we are
using.
Here is one place I wasn't careful enough. If the wbio2 is not in
use, then it might get freed at the first generic_make_request call.
So perform all necessary tests first.
This bug was introduced in 3.3-rc3 (24afd80d99) and can cause an
oops, so fix is suitable for any -stable since then.
Cc: stable@vger.kernel.org (3.3+)
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md/raid5.h')
0 files changed, 0 insertions, 0 deletions