diff options
Diffstat (limited to 'drivers/net/netconsole.c')
| -rw-r--r-- | drivers/net/netconsole.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/netconsole.c b/drivers/net/netconsole.c index 665341e43055..e13966bb5f77 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, | |||
| 598 | nt = kzalloc(sizeof(*nt), GFP_KERNEL); | 598 | nt = kzalloc(sizeof(*nt), GFP_KERNEL); |
| 599 | if (!nt) { | 599 | if (!nt) { |
| 600 | printk(KERN_ERR "netconsole: failed to allocate memory\n"); | 600 | printk(KERN_ERR "netconsole: failed to allocate memory\n"); |
| 601 | return NULL; | 601 | return ERR_PTR(-ENOMEM); |
| 602 | } | 602 | } |
| 603 | 603 | ||
| 604 | nt->np.name = "netconsole"; | 604 | nt->np.name = "netconsole"; |
