]> err.no Git - linux-2.6/blobdiff - drivers/net/netconsole.c
V4L/DVB (8475): pvrusb2: Cosmetic macro fix (benign)
[linux-2.6] / 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";