X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=drivers%2Fnet%2Fnetconsole.c;h=e13966bb5f7749d8462e76fb3d9aa802b80eab46;hb=9b1a4d38373a5581a4e01032a3ccdd94cd93477b;hp=665341e43055a3079465354f91c31b315d70e034;hpb=a49072bb367a94a9af6c6a6dcbaa1dc5617d7fa0;p=linux-2.6-omap-h63xx.git diff --git a/drivers/net/netconsole.c b/drivers/net/netconsole.c index 665341e4305..e13966bb5f7 100644 --- a/drivers/net/netconsole.c +++ b/drivers/net/netconsole.c @@ -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";