From: Josef Bacik Date: Thu, 2 Aug 2012 14:23:59 +0000 (-0400) Subject: Btrfs: do not strdup non existent strings X-Git-Tag: v3.6-rc4~6^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=99f5944b8477914406173b47b4f261356286730b;p=pandora-kernel.git Btrfs: do not strdup non existent strings When we close devices we add back empty devices for some reason that escapes me. In the case of a missing dev we don't allocate an rcu_string for it's name, so check to see if the device has a name and if it doesn't don't bother strdup()'ing it. Thanks, Signed-off-by: Josef Bacik --- Reading git-diff-tree failed