Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 78687
b: refs/heads/master
c: 67b2321
h: refs/heads/master
i:
  78685: f559820
  78683: 29c54e2
  78679: b99260b
  78671: d46b592
  78655: b24b28e
v: v3
  • Loading branch information
Julia Lawall authored and David S. Miller committed Jan 28, 2008
1 parent 3e43a45 commit 1407184
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3becd578c5c9aafde6f562bb1dfe20d420bce6e8
refs/heads/master: 67b23219ce2f78352b0c566a472ff16c1b0fea9a
4 changes: 2 additions & 2 deletions trunk/net/bluetooth/bnep/sock.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ static int bnep_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long
return err;

if (nsock->sk->sk_state != BT_CONNECTED) {
fput(nsock->file);
sockfd_put(nsock);
return -EBADFD;
}

Expand All @@ -103,7 +103,7 @@ static int bnep_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long
if (copy_to_user(argp, &ca, sizeof(ca)))
err = -EFAULT;
} else
fput(nsock->file);
sockfd_put(nsock);

return err;

Expand Down
4 changes: 2 additions & 2 deletions trunk/net/bluetooth/cmtp/sock.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ static int cmtp_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long
return err;

if (nsock->sk->sk_state != BT_CONNECTED) {
fput(nsock->file);
sockfd_put(nsock);
return -EBADFD;
}

Expand All @@ -97,7 +97,7 @@ static int cmtp_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long
if (copy_to_user(argp, &ca, sizeof(ca)))
err = -EFAULT;
} else
fput(nsock->file);
sockfd_put(nsock);

return err;

Expand Down
10 changes: 5 additions & 5 deletions trunk/net/bluetooth/hidp/sock.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,13 @@ static int hidp_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long

isock = sockfd_lookup(ca.intr_sock, &err);
if (!isock) {
fput(csock->file);
sockfd_put(csock);
return err;
}

if (csock->sk->sk_state != BT_CONNECTED || isock->sk->sk_state != BT_CONNECTED) {
fput(csock->file);
fput(isock->file);
sockfd_put(csock);
sockfd_put(isock);
return -EBADFD;
}

Expand All @@ -101,8 +101,8 @@ static int hidp_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long
if (copy_to_user(argp, &ca, sizeof(ca)))
err = -EFAULT;
} else {
fput(csock->file);
fput(isock->file);
sockfd_put(csock);
sockfd_put(isock);
}

return err;
Expand Down

0 comments on commit 1407184

Please sign in to comment.