]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/net/netconsole.c
configfs: Allow ->make_item() and ->make_group() to return detailed errors.
[linux-2.6-omap-h63xx.git] / drivers / net / netconsole.c
index 665341e43055a3079465354f91c31b315d70e034..e13966bb5f7749d8462e76fb3d9aa802b80eab46 100644 (file)
@@ -598,7 +598,7 @@ static struct config_item *make_netconsole_target(struct config_group *group,
        nt = kzalloc(sizeof(*nt), GFP_KERNEL);
        if (!nt) {
                printk(KERN_ERR "netconsole: failed to allocate memory\n");
-               return NULL;
+               return ERR_PTR(-ENOMEM);
        }
 
        nt->np.name = "netconsole";