diff options
Diffstat (limited to 'net/bluetooth/cmtp/sock.c')
-rw-r--r-- | net/bluetooth/cmtp/sock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/bluetooth/cmtp/sock.c b/net/bluetooth/cmtp/sock.c index 783edab12ce8..8c7f7bc4e0ba 100644 --- a/net/bluetooth/cmtp/sock.c +++ b/net/bluetooth/cmtp/sock.c | |||
@@ -88,7 +88,7 @@ static int cmtp_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long | |||
88 | return err; | 88 | return err; |
89 | 89 | ||
90 | if (nsock->sk->sk_state != BT_CONNECTED) { | 90 | if (nsock->sk->sk_state != BT_CONNECTED) { |
91 | fput(nsock->file); | 91 | sockfd_put(nsock); |
92 | return -EBADFD; | 92 | return -EBADFD; |
93 | } | 93 | } |
94 | 94 | ||
@@ -97,7 +97,7 @@ static int cmtp_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long | |||
97 | if (copy_to_user(argp, &ca, sizeof(ca))) | 97 | if (copy_to_user(argp, &ca, sizeof(ca))) |
98 | err = -EFAULT; | 98 | err = -EFAULT; |
99 | } else | 99 | } else |
100 | fput(nsock->file); | 100 | sockfd_put(nsock); |
101 | 101 | ||
102 | return err; | 102 | return err; |
103 | 103 | ||