aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-bit.c
diff options
context:
space:
mode:
authorLiu Bo <[email protected]>2013-06-28 12:37:45 +0800
committerJosef Bacik <[email protected]>2013-07-02 11:50:59 -0400
commit35f0399db6658f465b00893bdd13b992a0acfef0 (patch)
tree85d5f041076bb95561f904dba8ac3dc56c19fe42 /lib/mpi/mpi-bit.c
parentedd1400be9f983f521c7397740d810fa210ee52f (diff)
Btrfs: fix crash regarding to ulist_add_merge
Several users reported this crash of NULL pointer or general protection, the story is that we add a rbtree for speedup ulist iteration, and we use krealloc() to address ulist growth, and krealloc() use memcpy to copy old data to new memory area, so it's OK for an array as it doesn't use pointers while it's not OK for a rbtree as it uses pointers. So krealloc() will mess up our rbtree and it ends up with crash. Reviewed-by: Wang Shilong <[email protected]> Signed-off-by: Liu Bo <[email protected]> Signed-off-by: Josef Bacik <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions