diff --git a/kernel/trace/blktrace.c b/kernel/trace/blktrace.c index b171778e3863ddcb4d2d8f6ef1b88cd53818b57d..fb3bc53835dd5a1c20bfb7c462975654bef1cffa 100644 --- a/kernel/trace/blktrace.c +++ b/kernel/trace/blktrace.c @@ -432,7 +432,7 @@ int do_blk_trace_setup(struct request_queue *q, char *name, dev_t dev, if (!blk_tree_root) { blk_tree_root = debugfs_create_dir("block", NULL); if (!blk_tree_root) - return -ENOMEM; + goto err; } dir = debugfs_create_dir(buts->name, blk_tree_root);