aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/bnep/sock.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/bluetooth/bnep/sock.c')
-rw-r--r--net/bluetooth/bnep/sock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/bluetooth/bnep/sock.c b/net/bluetooth/bnep/sock.c
index 9ebd3c64474d..81065e548a1f 100644
--- a/net/bluetooth/bnep/sock.c
+++ b/net/bluetooth/bnep/sock.c
@@ -94,7 +94,7 @@ static int bnep_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long
94 return err; 94 return err;
95 95
96 if (nsock->sk->sk_state != BT_CONNECTED) { 96 if (nsock->sk->sk_state != BT_CONNECTED) {
97 fput(nsock->file); 97 sockfd_put(nsock);
98 return -EBADFD; 98 return -EBADFD;
99 } 99 }
100 100
@@ -103,7 +103,7 @@ static int bnep_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long
103 if (copy_to_user(argp, &ca, sizeof(ca))) 103 if (copy_to_user(argp, &ca, sizeof(ca)))
104 err = -EFAULT; 104 err = -EFAULT;
105 } else 105 } else
106 fput(nsock->file); 106 sockfd_put(nsock);
107 107
108 return err; 108 return err;
109 109