Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 268655
b: refs/heads/master
c: 7f2bad4
h: refs/heads/master
i:
  268653: c1e5e45
  268651: b4982b9
  268647: f920aa7
  268639: 443bbf6
v: v3
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed Oct 4, 2011
1 parent 277e6e1 commit 9a7ddb9
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: 28e0d06655ddc6598155e2f71945f1abb00b398a
refs/heads/master: 7f2bad4bd0d22f4cdd876152f1eeb9a8cfdc8d9d
6 changes: 3 additions & 3 deletions trunk/drivers/staging/hv/hv_mouse.c
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ static struct mousevsc_dev *alloc_input_device(struct hv_device *device)

static void free_input_device(struct mousevsc_dev *device)
{
WARN_ON(atomic_read(&device->ref_count) == 0);
WARN_ON(atomic_read(&device->ref_count) != 0);
kfree(device);
}

Expand Down Expand Up @@ -327,7 +327,7 @@ static void mousevsc_on_receive_device_info(struct mousevsc_dev *input_device,

/* Save the hid desc */
desc = &device_info->hid_descriptor;
WARN_ON(desc->bLength > 0);
WARN_ON(desc->bLength == 0);

input_device->hid_desc = kzalloc(desc->bLength, GFP_KERNEL);

Expand Down Expand Up @@ -447,7 +447,7 @@ static void mousevsc_on_receive(struct hv_device *device,
break;

case SynthHidInitialDeviceInfo:
WARN_ON(pipe_msg->size >= sizeof(struct hv_input_dev_info));
WARN_ON(pipe_msg->size < sizeof(struct hv_input_dev_info));

/*
* Parse out the device info into device attr,
Expand Down

0 comments on commit 9a7ddb9

Please sign in to comment.