aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-bit.c
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2013-05-24 15:55:28 -0700
committerLinus Torvalds <[email protected]>2013-05-24 16:22:52 -0700
commitdfd20b2b174d3a9b258ea3b7a35ead33576587b1 (patch)
treeafa033d613e8eca4bdaf6f9be2b990318a886b36 /lib/mpi/mpi-bit.c
parente5ee7305ae03e43dbe2b0e346232975f793ad0eb (diff)
drivers/block/brd.c: fix brd_lookup_page() race
The index on the page must be set before it is inserted in the radix tree. Otherwise there is a small race which can occur during lookup where the page can be found with the incorrect index. This will trigger the BUG_ON() in brd_lookup_page(). Signed-off-by: Brian Behlendorf <[email protected]> Reported-by: Chris Wedgwood <[email protected]> Cc: Jens Axboe <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions