Re: [PATCH] btrfs: fix NPD during canceling replace when the target is missing

2018-02-21 Thread Anand Jain
On 02/21/2018 01:04 AM, David Sterba wrote: On Tue, Feb 20, 2018 at 10:48:09PM +0800, Anand Jain wrote: Replace target can be missing after a reboot during the replace. So check if device is null. BUG: unable to handle kernel NULL pointer dereference at 00b0 IP:

Re: [PATCH] btrfs: fix NPD during canceling replace when the target is missing

2018-02-20 Thread David Sterba
On Tue, Feb 20, 2018 at 10:48:09PM +0800, Anand Jain wrote: > Replace target can be missing after a reboot during the replace. > So check if device is null. > > BUG: unable to handle kernel NULL pointer dereference at 00b0 > IP: btrfs_destroy_dev_replace_tgtdev+0x43/0xf0 [btrfs] >

[PATCH] btrfs: fix NPD during canceling replace when the target is missing

2018-02-20 Thread Anand Jain
Replace target can be missing after a reboot during the replace. So check if device is null. BUG: unable to handle kernel NULL pointer dereference at 00b0 IP: btrfs_destroy_dev_replace_tgtdev+0x43/0xf0 [btrfs] Call Trace: btrfs_dev_replace_cancel+0x22b/0x250 [btrfs]