OMAP4: hwmod data: Prevent timer1 to be reset and idle during init
[pandora-kernel.git] / crypto / af_alg.c
index cabed0e..940d70c 100644 (file)
@@ -27,7 +27,7 @@ struct alg_type_list {
        struct list_head list;
 };
 
-static atomic_t alg_memory_allocated;
+static atomic_long_t alg_memory_allocated;
 
 static struct proto alg_proto = {
        .name                   = "ALG",
@@ -242,6 +242,7 @@ int af_alg_accept(struct sock *sk, struct socket *newsock)
                goto unlock;
 
        sock_init_data(newsock, sk2);
+       sock_graft(sk2, newsock);
 
        err = type->accept(ask->private, sk2);
        if (err) {