af_unix: Avoid socket->sk NULL OOPS in stream connect security hooks.
[linux-flexiantxendom0-natty.git] / security / capability.c
index c773635..2a5df2b 100644 (file)
@@ -548,7 +548,7 @@ static int cap_sem_semop(struct sem_array *sma, struct sembuf *sops,
 }
 
 #ifdef CONFIG_SECURITY_NETWORK
-static int cap_unix_stream_connect(struct socket *sock, struct socket *other,
+static int cap_unix_stream_connect(struct sock *sock, struct sock *other,
                                   struct sock *newsk)
 {
        return 0;