git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aea9058
)
dm table: fix upgrade mode race
author
Alasdair G Kergon
<agk@redhat.com>
Thu, 2 Apr 2009 18:55:28 +0000
(19:55 +0100)
committer
Alasdair G Kergon
<agk@redhat.com>
Thu, 2 Apr 2009 18:55:28 +0000
(19:55 +0100)
upgrade_mode() sets bdev to NULL temporarily, and does not have any
locking to exclude anything from seeing that NULL.
In dm_table_any_congested() bdev_get_queue() can dereference that NULL and
cause a reported oops.
Fix this by not changing that field during the mode upgrade.
Cc: stable@kernel.org
Cc: Neil Brown <neilb@suse.de>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-table.c
patch
|
blob
|
history
diff --cc
drivers/md/dm-table.c
Simple merge