]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: fix NULL pointer crash of deleting a seed device
authorLiu Bo <bo.li.liu@oracle.com>
Sun, 11 May 2014 15:14:59 +0000 (23:14 +0800)
committerChris Mason <clm@fb.com>
Tue, 10 Jun 2014 00:20:47 +0000 (17:20 -0700)
commitffb3d2ba1d67794fb6f62ffad422131d64053f29
tree287e90273db0c42776c9adb024c8d4700e2d9166
parentf72af8c85bce6402d3df385a744d03ff5bf8dd0b
Btrfs: fix NULL pointer crash of deleting a seed device

Same as normal devices, seed devices should be initialized with
fs_info->dev_root as well, otherwise we'll get a NULL pointer crash.

Cc: Chris Murphy <lists@colorremedies.com>
Reported-by: Chris Murphy <lists@colorremedies.com>
Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/volumes.c