diff --git a/net/appletalk/ddp.c b/net/appletalk/ddp.c index 943d66fd860cea3d6a49fb567acbde2819d3c3e2..2880ac47037902a264584151a111ce875e40d7d5 100644 --- a/net/appletalk/ddp.c +++ b/net/appletalk/ddp.c @@ -1925,6 +1925,7 @@ static int __init atalk_init(void) ddp_dl = register_snap_client(ddp_snap_id, atalk_rcv); if (!ddp_dl) { pr_crit("Unable to register DDP with SNAP.\n"); + rc = -ENOMEM; goto out_sock; }