Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 236544
b: refs/heads/master
c: dd9b15d
h: refs/heads/master
v: v3
  • Loading branch information
Ilia Mirkin authored and Greg Kroah-Hartman committed Mar 14, 2011
1 parent a1a39cb commit a47ffd3
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 14 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: e13a0b5a4b2ca9e318896a1c8c4b45d62477c956
refs/heads/master: dd9b15dc03075993f63a8a69667a3a8989aedfa1
3 changes: 1 addition & 2 deletions trunk/drivers/staging/hv/channel_mgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -829,8 +829,7 @@ int vmbus_request_offers(void)


cleanup:
if (msginfo)
kfree(msginfo);
kfree(msginfo);

return ret;
}
Expand Down
4 changes: 1 addition & 3 deletions trunk/drivers/staging/hv/connection.c
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,7 @@ int vmbus_connect(void)
vmbus_connection.monitor_pages = NULL;
}

if (msginfo) {
kfree(msginfo);
}
kfree(msginfo);

return ret;
}
Expand Down
12 changes: 4 additions & 8 deletions trunk/drivers/staging/hv/hv_mouse.c
Original file line number Diff line number Diff line change
Expand Up @@ -402,15 +402,11 @@ static void MousevscOnReceiveDeviceInfo(struct mousevsc_dev *InputDevice, struct
return;

Cleanup:
if (InputDevice->HidDesc) {
kfree(InputDevice->HidDesc);
InputDevice->HidDesc = NULL;
}
kfree(InputDevice->HidDesc);
InputDevice->HidDesc = NULL;

if (InputDevice->ReportDesc) {
kfree(InputDevice->ReportDesc);
InputDevice->ReportDesc = NULL;
}
kfree(InputDevice->ReportDesc);
InputDevice->ReportDesc = NULL;

InputDevice->DeviceInfoStatus = -1;
InputDevice->device_wait_condition = 1;
Expand Down

0 comments on commit a47ffd3

Please sign in to comment.