Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 259492
b: refs/heads/master
c: 9ba422b
h: refs/heads/master
v: v3
  • Loading branch information
Márton Németh authored and Greg Kroah-Hartman committed Jun 7, 2011
1 parent ee214e2 commit 9ebd0a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: 0392bbb6f6af31888570a24641158d9b51b07eb6
refs/heads/master: 9ba422b346c9654ec78ee0a5b7c5db6e5d4c48dd
6 changes: 3 additions & 3 deletions trunk/drivers/staging/usbip/stub_rx.c
Original file line number Diff line number Diff line change
Expand Up @@ -304,18 +304,18 @@ static int stub_recv_cmd_unlink(struct stub_device *sdev,
static int valid_request(struct stub_device *sdev, struct usbip_header *pdu)
{
struct usbip_device *ud = &sdev->ud;
int valid = 0;

if (pdu->base.devid == sdev->devid) {
spin_lock(&ud->lock);
if (ud->status == SDEV_ST_USED) {
/* A request is valid. */
spin_unlock(&ud->lock);
return 1;
valid = 1;
}
spin_unlock(&ud->lock);
}

return 0;
return valid;
}

static struct stub_priv *stub_priv_alloc(struct stub_device *sdev,
Expand Down

0 comments on commit 9ebd0a8

Please sign in to comment.