Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3c911608 authored by Eric Sandeen's avatar Eric Sandeen Committed by Chris Mason
Browse files

btrfs: don't try to notify udev about missing devices



If we remove a missing device, bdev is null, and if we
send that off to btrfs_kobject_uevent we'll panic.

Signed-off-by: default avatarEric Sandeen <sandeen@redhat.com>
Signed-off-by: default avatarJosef Bacik <jbacik@fusionio.com>
Signed-off-by: default avatarChris Mason <chris.mason@fusionio.com>
parent 57ba86c0
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1556,6 +1556,7 @@ int btrfs_rm_device(struct btrfs_root *root, char *device_path)
	ret = 0;

	/* Notify udev that device has changed */
	if (bdev)
		btrfs_kobject_uevent(bdev, KOBJ_CHANGE);

error_brelse: