]> err.no Git - linux-2.6/blobdiff - net/bluetooth/l2cap.c
[PATCH] vt: fix possible memory corruption in complement_pos
[linux-2.6] / net / bluetooth / l2cap.c
index c12babcf0b3ccb05b473e95bf6af77be19dd218e..d3d6bc547212f7d289928cdf393abce3a167eb08 100644 (file)
@@ -30,7 +30,6 @@
 #include <linux/types.h>
 #include <linux/errno.h>
 #include <linux/kernel.h>
-#include <linux/major.h>
 #include <linux/sched.h>
 #include <linux/slab.h>
 #include <linux/poll.h>
@@ -373,7 +372,7 @@ static struct proto l2cap_proto = {
        .obj_size       = sizeof(struct l2cap_pinfo)
 };
 
-static struct sock *l2cap_sock_alloc(struct socket *sock, int proto, int prio)
+static struct sock *l2cap_sock_alloc(struct socket *sock, int proto, unsigned int __nocast prio)
 {
        struct sock *sk;