commit | 655b09fe540b73edeaabfb4c2d700be51a1f8bce | [log] [tgz] |
---|---|---|
author | Josef Bacik <jbacik@fusionio.com> | Fri May 17 14:06:51 2013 -0400 |
committer | Josef Bacik <jbacik@fusionio.com> | Fri May 17 21:40:38 2013 -0400 |
tree | ee5239ddbadcd4aed7266f61653e28e990bb2978 | |
parent | 3a6cad9009c85e29e83aafc8ac00b1dd5067fc5f [diff] |
Btrfs: make sure roots are assigned before freeing their nodes If we fail to load the chunk tree we'll call free_root_pointers, except we may not have assigned the roots for the dev_root/extent_root/csum_root yet, so we could NULL pointer deref at this point. Just add checks to make sure these roots are set to keep us from panicing. Thanks, Signed-off-by: Josef Bacik <jbacik@fusionio.com>