Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 197305
b: refs/heads/master
c: 8a62d71
h: refs/heads/master
i:
  197303: b519aaa
v: v3
  • Loading branch information
Bill Pemberton authored and Greg Kroah-Hartman committed May 11, 2010
1 parent 3639343 commit 8ba2b37
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 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: 45e4431468f24748ba089b741713c740e854fccc
refs/heads/master: 8a62d7168af111bb80d041e6ccf74987056c79d3
15 changes: 11 additions & 4 deletions trunk/drivers/staging/hv/RndisFilter.c
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,9 @@ static int RndisFilterOnReceive(struct hv_device *Device,

DPRINT_ENTER(NETVSC);

ASSERT(netDevice);
if (!netDevice)
return -EINVAL;

/* Make sure the rndis device state is initialized */
if (!netDevice->Extension) {
DPRINT_ERR(NETVSC, "got rndis message but no rndis device..."
Expand Down Expand Up @@ -492,7 +494,8 @@ static int RndisFilterQueryDevice(struct rndis_device *Device, u32 Oid,

DPRINT_ENTER(NETVSC);

ASSERT(Result);
if (!Result)
return -EINVAL;

*ResultSize = 0;
request = GetRndisRequest(Device, REMOTE_NDIS_QUERY_MSG,
Expand Down Expand Up @@ -885,7 +888,9 @@ int RndisFilterOnOpen(struct hv_device *Device)

DPRINT_ENTER(NETVSC);

ASSERT(netDevice);
if (!netDevice)
return -EINVAL;

ret = RndisFilterOpenDevice(netDevice->Extension);

DPRINT_EXIT(NETVSC);
Expand All @@ -900,7 +905,9 @@ int RndisFilterOnClose(struct hv_device *Device)

DPRINT_ENTER(NETVSC);

ASSERT(netDevice);
if (!netDevice)
return -EINVAL;

ret = RndisFilterCloseDevice(netDevice->Extension);

DPRINT_EXIT(NETVSC);
Expand Down

0 comments on commit 8ba2b37

Please sign in to comment.