From: Eric Sandeen Date: Mon, 7 Jul 2014 17:34:49 +0000 (-0500) Subject: btrfs: test for valid bdev before kobj removal in btrfs_rm_device X-Git-Tag: omap-for-v3.17/fixes-against-rc2~260^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0bfaa9c5cb479cebc24979b384374fe47500b4c9;p=pandora-kernel.git btrfs: test for valid bdev before kobj removal in btrfs_rm_device commit 99994cd btrfs: dev delete should remove sysfs entry added a btrfs_kobj_rm_device, which dereferences device->bdev... right after we check whether device->bdev might be NULL. I don't honestly know if it's possible to have a NULL device->bdev here, but assuming that it is (given the test), we need to move the kobject removal to be under that test. (Coverity spotted this) Signed-off-by: Eric Sandeen Signed-off-by: Chris Mason --- Reading git-diff-tree failed