bcache: fix crash in bcache_btree_node_alloc_fail tracepoint

'b' was NULL.

Change-Id: Icac0fd04afa2d23f213d96d51afd53374e6dd0c0
This commit is contained in:
Slava Pestov 2014-05-23 11:18:35 -07:00 • committed by Kent Overstreet
commit 913dc33fb2
2 changed files with 4 additions and 4 deletions

View file

@ -1096,7 +1096,7 @@ err_free:
err:
mutex_unlock(&c->bucket_lock);
trace_bcache_btree_node_alloc_fail(b);
trace_bcache_btree_node_alloc_fail(c);
return b;
}